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

TestRatisPipelineUtils.testPipelineCreationOnNodeRestart is flaky

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • test
    • HDDS BadLands

    Description

      It is failed with:

      java.lang.Exception: test timed out after 30000 milliseconds
      	at java.lang.Thread.sleep(Native Method)
      	at org.apache.hadoop.test.GenericTestUtils.waitFor(GenericTestUtils.java:382)
      	at org.apache.hadoop.hdds.scm.pipeline.TestRatisPipelineUtils.waitForPipelines(TestRatisPipelineUtils.java:125)
      	at org.apache.hadoop.hdds.scm.pipeline.TestRatisPipelineUtils.testPipelineCreationOnNodeRestart(TestRatisPipelineUtils.java:120)
      	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)
      

      Log file is uploaded.

      AFAIK the problem is that RatisPipelineUtils.createPipeline connected to a non-leader node.

      But it's not clear for me how is it possible. According to the log (attached) the leader election continued after the NonLeaderException. It can be just the sign that one datanode was missing from the pipeline...

      Attachments

        1. ci2.log
          100 kB
          Marton Elek
        2. ci.log
          98 kB
          Marton Elek

        Issue Links

          Activity

            People

              Unassigned Unassigned
              elek Marton Elek
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: