Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

ISSUE-19650: Flaky-test: SegmentAbortedTxnProcessorTest.testClearSnapshotSegments #5563

Open
1 of 2 tasks
sijie opened this issue Feb 27, 2023 · 0 comments
Open
1 of 2 tasks

Comments

@sijie
Copy link
Member

sijie commented Feb 27, 2023

Original Issue: apache#19650


Search before asking

  • I searched in the issues and found nothing similar.

Example failure

https://github.com/apache/pulsar/actions/runs/4282039327/jobs/7455965414#step:11:1147

Exception stacktrace

  Error:  Tests run: 15, Failures: 1, Errors: 0, Skipped: 14, Time elapsed: 37.063 s <<< FAILURE! - in org.apache.pulsar.broker.transaction.SegmentAbortedTxnProcessorTest
  Error:  testClearSnapshotSegments(org.apache.pulsar.broker.transaction.SegmentAbortedTxnProcessorTest)  Time elapsed: 10.097 s  <<< FAILURE!
  org.testcontainers.shaded.org.awaitility.core.ConditionTimeoutException: Assertion condition defined as a org.apache.pulsar.broker.transaction.SegmentAbortedTxnProcessorTest expected [2] but found [1] within 10 seconds.
  	at org.testcontainers.shaded.org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
  	at org.testcontainers.shaded.org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)
  	at org.testcontainers.shaded.org.awaitility.core.AssertionCondition.await(AssertionCondition.java:31)
  	at org.testcontainers.shaded.org.awaitility.core.ConditionFactory.until(ConditionFactory.java:985)
  	at org.testcontainers.shaded.org.awaitility.core.ConditionFactory.untilAsserted(ConditionFactory.java:769)
  	at org.apache.pulsar.broker.transaction.SegmentAbortedTxnProcessorTest.testClearSnapshotSegments(SegmentAbortedTxnProcessorTest.java:196)
  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
  	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:264)
  	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
  	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
  	at java.base/java.lang.Thread.run(Thread.java:833)
  Caused by: java.lang.AssertionError: expected [2] but found [1]
  	at org.testng.Assert.fail(Assert.java:110)
  	at org.testng.Assert.failNotEquals(Assert.java:1413)
  	at org.testng.Assert.assertEqualsImpl(Assert.java:149)
  	at org.testng.Assert.assertEquals(Assert.java:131)
  	at org.testng.Assert.assertEquals(Assert.java:1240)
  	at org.testng.Assert.assertEquals(Assert.java:1274)
  	at org.apache.pulsar.broker.transaction.SegmentAbortedTxnProcessorTest.verifySnapshotSegmentsSize(SegmentAbortedTxnProcessorTest.java:251)
  	at org.apache.pulsar.broker.transaction.SegmentAbortedTxnProcessorTest.lambda$testClearSnapshotSegments$3(SegmentAbortedTxnProcessorTest.java:196)
  	at org.testcontainers.shaded.org.awaitility.core.AssertionCondition.lambda$new$0(AssertionCondition.java:53)
  	at org.testcontainers.shaded.org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:248)
  	at org.testcontainers.shaded.org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:235)
  	... 4 more

Are you willing to submit a PR?

  • I'm willing to submit a PR!
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant