kop icon indicating copy to clipboard operation
kop copied to clipboard

Flaky-test: KafkaMessageOrderKafkaTest.testKafkaProduceMessageOrder

Open BewareMyPower opened this issue 3 years ago • 0 comments

KafkaMessageOrderKafkaTest is flaky. The testKafkaProduceMessageOrder test method fails sporadically.

example failure

Error:  Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 18.826 s <<< FAILURE! - in io.streamnative.pulsar.handlers.kop.KafkaMessageOrderKafkaTest
Error:  testKafkaProduceMessageOrder(io.streamnative.pulsar.handlers.kop.KafkaMessageOrderKafkaTest)  Time elapsed: 0.242 s  <<< FAILURE!
java.lang.AssertionError: expected [3] but found [12]
	at org.testng.Assert.fail(Assert.java:96)
	at org.testng.Assert.failNotEquals(Assert.java:776)
	at org.testng.Assert.assertEqualsImpl(Assert.java:137)
	at org.testng.Assert.assertEquals(Assert.java:118)
	at org.testng.Assert.assertEquals(Assert.java:652)
	at org.testng.Assert.assertEquals(Assert.java:662)
	at io.streamnative.pulsar.handlers.kop.KafkaMessageOrderTestBase.testKafkaProduceMessageOrder(KafkaMessageOrderTestBase.java:1[70](https://github.com/streamnative/kop/runs/5505464003?check_suite_focus=true#step:5:70))
	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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
	at org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:54)
	at org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:44)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:[75](https://github.com/streamnative/kop/runs/5505464003?check_suite_focus=true#step:5:75)0)

BewareMyPower avatar Mar 11 '22 09:03 BewareMyPower