Description
Following test is failing randomly. Anything waitFor helps to resolve this issue?
TestRootedOzoneFileSystem.java:1262
// 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);
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)