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

Test Performance improvement. Test Timeout Mitigation.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.4.1
    • Fix Version/s: 0.5.0
    • Labels:
    • Environment:
      linux, unix with true random number generator.
    • Flags:
      Important

      Description

      Existing test case nifi-framework-core/src/test/java/org/apache/nifi/controller/TestStandardFlowFileQueue.java uses a huge number of call to UUID.randomUUID() which is very slow in linux , unix environment if there is not much activity [ like mouse move etc.] .In addition to that UUID.randomUUID() depends on /dev/(u)random to get a random number, such system call costs IO and /dev/random is bandwidth/rate limited which again slows down overall performance.

      Workaround is rngd daemon(ref: http://linux.die.net/man/8/rngd)

        Attachments

          Activity

            People

            • Assignee:
              tkurc Tony Kurc
              Reporter:
              puspendu.banerjee@gmail.com Puspendu Banerjee
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified