Repository navigation
Closed
Description
Search before reporting
- I searched in the issues and found nothing similar.
Example failure
Exception stacktrace
Error: Tests run: 473, Failures: 1, Errors: 0, Skipped: 472, Time elapsed: 2.717 s <<< FAILURE! -- in org.apache.bookkeeper.mledger.impl.ManagedCursorTest
Error: org.apache.bookkeeper.mledger.impl.ManagedCursorTest.asyncMarkDeleteBlocking -- Time elapsed: 0.354 s <<< FAILURE!
java.lang.AssertionError: expected [20:9] but found [23:-1]
at org.testng.Assert.fail(Assert.java:110)
at org.testng.Assert.failNotEquals(Assert.java:1577)
at org.testng.Assert.assertEqualsImpl(Assert.java:149)
at org.testng.Assert.assertEquals(Assert.java:131)
at org.testng.Assert.assertEquals(Assert.java:643)
at org.apache.bookkeeper.mledger.impl.ManagedCursorTest.asyncMarkDeleteBlocking(ManagedCursorTest.java:1397)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:139)
at org.testng.internal.invokers.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:47)
at org.testng.internal.invokers.InvokeMethodRunnable.call(InvokeMethodRunnable.java:76)
at org.testng.internal.invokers.InvokeMethodRunnable.call(InvokeMethodRunnable.java:11)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
This can be reproduced by adding (invocationCount = 50) to the @Test annotation of ManagedCursorTest.asyncMarkDeleteBlocking
Are you willing to submit a PR?
- I'm willing to submit a PR!
Activity
lhotari commentedon Dec 18, 2025
Comment at #25087 (comment)
lhotari commentedon Dec 19, 2025
NonDurableCursorTest.asyncMarkDeleteBlocking is also flaky
lhotari commentedon Dec 19, 2025
It seems that ManagedCursorTest.cursorPersistenceAsyncMarkDeleteSameThread is also flaky. About 1 or 2 fail out of 100 invocations when running locally. I suppose that there's a lot more flakiness in CI due to less CPU cores. I wonder why #25087 triggers these problems. Any thoughts on this, @codelipenghui ?
oneby-wang commentedon Dec 19, 2025
Hi, @lhotari, I'm trying to work on
ManagedCursorTest.asyncMarkDeleteBlockingflaky test, and seems having a positive response.lhotari commentedon Dec 19, 2025
@oneby-wang This seems to be also flaky:
ManagedCursorTest.testLazyCursorLedgerCreationForSubscriptionCreation.example: https://github.com/apache/pulsar/actions/runs/20365321769/job/58519644066?pr=25096#step:11:2491
oneby-wang commentedon Dec 21, 2025
ManagedCursorTest.testNumberOfEntriesWithReopenis also flaky: https://github.com/oneby-wang/pulsar/actions/runs/20401768449/job/58625189220?pr=16lhotari commentedon Dec 22, 2025
There are also MetadataStoreException$BadVersionExceptions, for example. This also reproduced with ManagedCursorTest.asyncMarkDeleteBlocking.
https://github.com/apache/pulsar/actions/runs/20426546907/job/58699668578?pr=25102#step:11:2494