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

Intermittent Failures in TestMonitorActivity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.18.0
    • Tools and Build
    • None

    Description

      The TestMonitorActivity class has several methods that could result in intermittent failures, particularly on resource-constrained environments such as GitHub Actions.

      Multiple methods include calls to Thread.sleep(), which may not allow enough time to complete operations in some cases. These methods should be evaluated to improve test reliability.

      Error:  org.apache.nifi.processors.standard.TestMonitorActivity.testFirstMessageWithInherit  Time elapsed: 5.79 s  <<< FAILURE!
      org.opentest4j.AssertionFailedError: expected: <10> but was: <9>
      	at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)
      	at org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62)
      	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
      	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:145)
      	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:527)
      	at org.apache.nifi.util.StandardProcessorTestRunner.assertTransferCount(StandardProcessorTestRunner.java:360)
      	at org.apache.nifi.processors.standard.TestMonitorActivity.testFirstMessageWithInherit(TestMonitorActivity.java:376)
      

      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 - 20m
                  20m