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

Improve Performance of TestControlRate

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.19.0
    • Extensions, Tools and Build
    • None

    Description

      The TestControlRate class takes over 12 seconds to run due to the use of Thread.sleep() across multiple test methods.

      The test class can be improved by implementing a method to override the current time. The default implementation should maintain the current behavior of returning System.currentTimeMillis() but the extended test class can override the implementation to increment current time, allowing the processor logic to function as designed.

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              exceptionfactory David Handermann
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 40m
                  40m