Details
-
Bug
-
Status: Resolved
-
P1
-
Resolution: Cannot Reproduce
-
None
Description
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.beam.runners.dataflow.worker.util.MemoryMonitorTest.detectGCThrashing(MemoryMonitorTest.java:93)
This is a bad assertion, as one must read the code to learn anything.
The code snippet is:
provider.inGCThrashingState.set(false); monitor.waitForThrashingState(false); assertTrue(s.tryAcquire(100, TimeUnit.MILLISECONDS));
This is a timeout acquiring a lock in 100 milliseconds.