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

TestContainerActionsHandler.testCloseContainerAction has an intermittent failure

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4.0
    • Component/s: None
    • Sprint:
      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

              • Assignee:
                elek Marton Elek
                Reporter:
                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