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

Failed to update Flow on all nodes in cluster due to Cannot modify Processor configuration while the Processor is running

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.16.0
    • Core Framework

    Description

      Relates to NIFI-5227

      Steps to reproduce:

      1. Create a simple flow: GenerateFlowFile + UpdateAttribute. Ensure both processors have valid state.
      2. Commit flow to a registry.
      3. Remove connection between processors or do something else to move UpdateAttribute in invalid state.
      4. Commit flow to a registry.
      5. Change flow version to "1". UpdateAttribute should be valid now.
      6. Run UpdateAttribute 
      7. Change flow version to "2". Ensure UpdateAttribute has invalid state now.
      8. Change flow version back to "1".

      You will see error message "Failed to update Flow on all nodes in cluster due to Cannot modify Processor configuration while the Processor is running".

      Error message for single node (non cluster) will be similar.

      See attached patch. My solution is quite simple but I don't sure may be it is not good enough.

      Attachments

        1. ProcessorNode.patch
          1 kB
          Vasily Gudoshnikov
        2. image-2020-11-24-15-57-26-995.png
          17 kB
          Vasily Gudoshnikov

        Issue Links

          Activity

            People

              markap14 Mark Payne
              vgoodvin Vasily Gudoshnikov
              Votes:
              1 Vote for this issue
              Watchers:
              5 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 - 0.5h
                  0.5h