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

Flaky test TestContainerStateMachineFailureOnRead#testReadStateMachineFailureClosesPipeline

    XMLWordPrintableJSON

    Details

    • Target Version/s:
    • Sprint:
      HDDS BadLands

      Description

      Shows up in a PR: https://github.com/apache/hadoop-ozone/runs/540133363

      log
      [INFO] Running org.apache.hadoop.ozone.client.rpc.TestContainerStateMachineFailureOnRead
      [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 49.766 s <<< FAILURE! - in org.apache.hadoop.ozone.client.rpc.TestContainerStateMachineFailureOnRead
      [ERROR] testReadStateMachineFailureClosesPipeline(org.apache.hadoop.ozone.client.rpc.TestContainerStateMachineFailureOnRead)  Time elapsed: 49.623 s  <<< ERROR!
      java.lang.NullPointerException
      	at org.apache.hadoop.ozone.client.rpc.TestContainerStateMachineFailureOnRead.testReadStateMachineFailureClosesPipeline(TestContainerStateMachineFailureOnRead.java:204)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
      
      
      Location of NPE at TestContainerStateMachineFailureOnRead.java:204
          // delete the container dir from leader
          FileUtil.fullyDelete(new File(
              leaderDn.get().getDatanodeStateMachine()
                  .getContainer().getContainerSet()
                  .getContainer(omKeyLocationInfo.getContainerID()).getContainerData() <-- this line
                  .getContainerPath()));
      

        Attachments

          Activity

            People

            • Assignee:
              aryangupta1998 Aryan Gupta
              Reporter:
              smeng Siyao Meng
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: