Rakesh Radhakrishnan created HDDS-6451:
------------------------------------------

             Summary: Intermittent failures testRenameToTrashEnabled
                 Key: HDDS-6451
                 URL: https://issues.apache.org/jira/browse/HDDS-6451
             Project: Apache Ozone
          Issue Type: Sub-task
          Components: test
            Reporter: Rakesh Radhakrishnan


Following test is failing randomly. Anything {{waitFor}} helps to resolve this 
issue?

[~sadanand_shenoy]

*TestRootedOzoneFileSystem.java:1262*
{code:java}
    // Wait until the TrashEmptier purges the keys
    GenericTestUtils.waitFor(() -> {
      try {
        return ofs.exists(trashPath) && ofs.exists(userTrashCurrent);
      } catch (IOException e) {
        LOG.error("Delete from Trash Failed", e);
        Assert.fail("Delete from Trash Failed");
        return false;
      }
    }, 1000, 180000);
{code}
 

 
{code:java}
Error:  testRenameToTrashEnabled[0]  Time elapsed: 0.11 s  <<< FAILURE!
java.lang.AssertionError
        at org.junit.Assert.fail(Assert.java:87)
        at org.junit.Assert.assertTrue(Assert.java:42)
        at org.junit.Assert.assertTrue(Assert.java:53)
        at 
org.apache.hadoop.fs.ozone.TestRootedOzoneFileSystem.testRenameToTrashEnabled(TestRootedOzoneFileSystem.java:1262)
        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.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)

{code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to