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

Wait a bit for components to finish validation on updates

    Details

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

      Description

      When a Processor, Reporting Task, or Controller Service is updated, it is now validated asynchronously. This provides a faster response time for the web request but can sometimes result in a component showing a "Validating..." state when the response is received, even though the validation logic would complete very quickly. When we make an update to a component, instead of immediately creating the DTO, which would reflect that the state is "validating..." we should wait up to some amount of time (say 50 milliseconds?) for the validation to complete, before we create the response. This way, components whose validation completes quickly still show as Valid or Invalid as soon as the response comes back and only those components that actually take a long time to validate will show as Validating.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                markap14 Mark Payne
                Reporter:
                markap14 Mark Payne
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: