Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-10676

NiFi does not negotiate compatible versions when loading flow from cluster connection response

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.17.0, 1.16.3
    • None
    • Flow Versioning
    • None

    Description

      When a NiFi node loads the flow configuration from a file, it uses `BundleUpdateStrategy.USE_SPECIFIED_OR_COMPATIBLE_OR_GHOST` to allow for compatible flow resources to be used when the specified ones are not found. But when a NiFi node joins a cluster and receives the flow configuration from the primary node via the connection response, it uses `
      BundleUpdateStrategy.USE_SPECIFIED_OR_FAIL` which requires the specified flow resources to exist on the node for the flow sync to succeed.
       
      NiFi should use `BundleUpdateStrategy.USE_SPECIFIED_OR_COMPATIBLE_OR_GHOST` in both of these scenarios so that the flow sync behavior is consistent regardless of how the flow definition is received by the node.

      To avoid introducing any risk in the normal NiFi upgrade process, introduce this change as an "opt-in only" change that can be configured in nifi.properties

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ghynson Gene Hynson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m