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

Updating parameter used by running processor can result in the processor not restarting because it doesn't wait for validation to complete.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.10.0
    • Component/s: Core Framework
    • Labels:
      None

      Description

      There is a timing issue when updating a parameter that is referenced by a running processor. Updating the parameter context stops the processor and tries to restart it. However, validation of the processor might not be complete by the time it is attempted to be restarted and you can get an error (see attached image) and the processor does not restart automatically.

       

      Steps to reproduce:

      1) Create a process group with a ListFile and LogAttribute processor .
      2) Have the input dir be a parameter on the ListFile.  Set the parameter on the PG.
      3) Have that running.  Then go change the parameter value on the PG level.  It will auto-restart for you but fail because validation wasn't done yet for ListFIle resulting in a now not running processor.

        Attachments

        1. Processor fails to restart.png
          75 kB
          Rob Fellows

          Issue Links

            Activity

              People

              • Assignee:
                rfellows Rob Fellows
                Reporter:
                rfellows Rob Fellows
              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 1h
                  1h