Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-5626 Track and Address Flaky tests
  3. HDDS-9656

Intermittent failure in TestOzoneFileSystemWithFSO.testRenameFile

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Error: Tests run: 106, Failures: 1, Errors: 0, Skipped: 10, Time elapsed: 57.873 s <<< FAILURE! - in org.apache.hadoop.fs.ozone.TestOzoneFileSystemWithFSO
      Error: TestOzoneFileSystemWithFSO.testRenameFile Time elapsed: 0.034 s <<< FAILURE!
      java.lang.AssertionError: Renamed failed expected:<1> but was:<2>
      at org.junit.Assert.fail(Assert.java:89)
      at org.junit.Assert.failNotEquals(Assert.java:835)
      at org.junit.Assert.assertEquals(Assert.java:647)
      at org.apache.hadoop.fs.ozone.TestOzoneFileSystem.testRenameFile(TestOzoneFileSystem.java:1281)
      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:59)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:288)
      at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:282)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.lang.Thread.run(Thread.java:750)
       

      This failure is observed 2 times in PR.

       

      Possible cause - member variable for cluster, ... are static to the test class, so in parallel run of 2 test class (another inherited) may cause conflict:

       


      This is used by  two classes,

      • org.apache.hadoop.fs.ozone.TestOzoneFileSystem
      • org.apache.hadoop.fs.ozone.TestOzoneFileSystemWithFSO
         

      Attachments

        1. image-2023-11-09-10-17-02-663.png
          379 kB
          Sumit Agrawal

        Activity

          People

            arafat2198 Arafat Khan
            sumitagrawl Sumit Agrawal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: