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

StandardProcessorTestRunner should allow you to wait before calling OnUnScheduled methods

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.1.0
    • 0.2.0
    • Tools and Build
    • None

    Description

      StandardProcessorTestRunner does not wait for the processor 'run' calls to finish before invoking the @OnUnscheduled methods. This may result in the Processor 'run' calls acting weird, because @OnUnscheduled has been called.

      Notice that ExecutorService.shutdown() says This method does not wait for previously submitted tasks to complete execution. Use awaitTermination to do that.

      I would suggest that the StandardProcessorTestRunner either always wait for the processor run calls to finish, or let you specify an amount of time to wait for them to finish.

      Attachments

        Activity

          People

            danbress Dan Bress
            danbress Dan Bress
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: