apache / pulsar

Apache Pulsar - distributed pub-sub messaging system
https://pulsar.apache.org/
Apache License 2.0
14.24k stars 3.59k forks source link

Flaky-test: TransactionEndToEndTest.testDelayedTransactionMessages #22431

Open lhotari opened 7 months ago

lhotari commented 7 months ago

Search before asking

Example failures

Exception stacktrace

java.lang.AssertionError: expected [null] but found [org.apache.pulsar.client.impl.MessageImpl@32958558]
    at org.testng.Assert.fail(Assert.java:110)
    at org.testng.Assert.failNotSame(Assert.java:1573)
    at org.testng.Assert.assertNull(Assert.java:1506)
    at org.testng.Assert.assertNull(Assert.java:1494)
    at org.apache.pulsar.client.impl.TransactionEndToEndTest.testDelayedTransactionMessages(TransactionEndToEndTest.java:1669)
    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:840)

Are you willing to submit a PR?

lhotari commented 5 months ago

Also

java.lang.AssertionError: expected [null] but found [org.apache.pulsar.client.impl.MessageImpl@496169b]
    at org.testng.Assert.fail(Assert.java:110)
    at org.testng.Assert.failNotSame(Assert.java:1573)
    at org.testng.Assert.assertNull(Assert.java:1506)
    at org.testng.Assert.assertNull(Assert.java:1494)
    at org.apache.pulsar.client.impl.TransactionEndToEndTest.testDelayedTransactionMessages(TransactionEndToEndTest.java:1669)
    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:840)
lhotari commented 5 months ago

Also in TransactionEndToEndWithoutBatchIndexAckTest.testDelayedTransactionMessages