Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-1127 Fix failing and intermittent Ozone unit tests
  3. HDDS-1219

TestContainerActionsHandler.testCloseContainerAction has an intermittent failure

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • None
    • HDDS BadLands

    Description

      It's failed multiple times during the CI builds:

      Error Message
      
      Wanted but not invoked:
      closeContainerEventHandler.onMessage(
          #1,
          org.apache.hadoop.hdds.server.events.EventQueue@3d3fcdb0
      );
      -> at org.apache.hadoop.hdds.scm.container.TestContainerActionsHandler.testCloseContainerAction(TestContainerActionsHandler.java:64)
      Actually, there were zero interactions with this mock.
      

      The fix is easy: we should call queue.processAll(1000L) to wait for the processing of all the events.

      Attachments

        Issue Links

          Activity

            People

              elek Marton Elek
              elek Marton Elek
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 50m
                  50m