Repository navigation
Labels
Description
PersistentStreamingDispatcherBlockConsumerTest is flaky. The testBlockBrokerDispatching test method fails sporadically.
Error: testBlockBrokerDispatching(org.apache.pulsar.broker.service.persistent.PersistentStreamingDispatcherBlockConsumerTest) Time elapsed: 10.142 s <<< FAILURE!
1148
org.testng.internal.thread.ThreadTimeoutException: Method org.apache.pulsar.client.api.DispatcherBlockConsumerTest.testBlockBrokerDispatching() didn't finish within the time-out 10000
Full exception stacktrace
Error: testBlockBrokerDispatching(org.apache.pulsar.broker.service.persistent.PersistentStreamingDispatcherBlockConsumerTest) Time elapsed: 10.142 s <<< FAILURE!
1148
org.testng.internal.thread.ThreadTimeoutException: Method org.apache.pulsar.client.api.DispatcherBlockConsumerTest.testBlockBrokerDispatching() didn't finish within the time-out 10000
1149
at org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:371)
1150
at org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:282)
1151
at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:605)
1152
at org.testng.internal.TestInvoker.retryFailed(TestInvoker.java:214)
1153
at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:58)
1154
at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
1155
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
1156
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
1157
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
1158
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
1159
at org.testng.TestRunner.privateRun(TestRunner.java:764)
1160
at org.testng.TestRunner.run(TestRunner.java:585)
1161
at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
1162
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
1163
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
1164
at org.testng.SuiteRunner.run(SuiteRunner.java:286)
1165
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
1166
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
1167
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
1168
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
1169
at org.testng.TestNG.runSuites(TestNG.java:1069)
1170
at org.testng.TestNG.run(TestNG.java:1037)
1171
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:135)
1172
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
1173
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeLazy(TestNGDirectoryTestSuite.java:123)
1174
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:90)
1175
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:146)
1176
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
1177
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
1178
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
1179
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
Activity
Jason918 commentedon Nov 19, 2021
+1, @liangyepianzhou Any idea how to fix this?
lhotari commentedon Nov 23, 2021
Recent failure
lhotari commentedon Nov 23, 2021
@Jason918 I also came across this type of stack trace where the timeout didn't occur:
Jason918 commentedon Nov 23, 2021
@lhotari

Checked with the code, I think it's most likely because of the receive timeout setting is too small in line 821, it should use
receive()lhotari commentedon Nov 23, 2021
I collected some failures from Pulsar CI builds in the last 7 days. There's a lot of failures. Here are the unique stack traces and links to issues.
Flaky-test: org.apache.pulsar.broker.service.persistent.PersistentStreamingDispatcherBlockConsumerTest.testBlockBrokerDispatching
Number of failures: 78
org.apache.pulsar.broker.service.persistent.PersistentStreamingDispatcherBlockConsumerTest is flaky. The testBlockBrokerDispatching test method fails sporadically.
Usage tip: To enable automatic navigation to failure message, open the following links with CTRL/CMD-click.
example failure 2021-11-23T07:22:41.0309947Z
example failure 2021-11-23T07:18:17.4702538Z
example failure 2021-11-23T07:13:56.9821017Z
example failure 2021-11-23T06:48:08.6320205Z
example failure 2021-11-23T06:43:58.5666978Z
example failure 2021-11-23T06:39:47.6358549Z
example failure 2021-11-23T04:05:20.5380472Z
example failure 2021-11-23T04:01:02.8698856Z
example failure 2021-11-23T03:56:46.3194444Z
example failure 2021-11-22T14:55:32.2969523Z
example failure 2021-11-22T11:49:38.1711553Z
example failure 2021-11-22T11:45:29.5748587Z
example failure 2021-11-22T11:41:22.6279285Z
example failure 2021-11-22T11:33:10.8393092Z
example failure 2021-11-22T11:07:14.3999199Z
example failure 2021-11-22T10:58:08.2883266Z
example failure 2021-11-22T10:38:33.8541156Z
example failure 2021-11-22T10:33:59.2730777Z
example failure 2021-11-22T10:31:46.8304904Z
example failure 2021-11-22T10:29:51.9768989Z
example failure 2021-11-22T10:27:20.2438765Z
example failure 2021-11-22T10:22:59.7419898Z
example failure 2021-11-22T09:51:41.8511464Z
example failure 2021-11-22T09:42:44.3965961Z
example failure 2021-11-22T09:26:58.8812634Z
example failure 2021-11-22T09:18:29.6326753Z
example failure 2021-11-22T02:38:53.2727103Z
example failure 2021-11-22T02:34:32.0674347Z
example failure 2021-11-21T03:52:10.1651394Z
example failure 2021-11-21T03:51:09.8158336Z
example failure 2021-11-20T15:31:52.9700462Z
example failure 2021-11-20T15:27:41.3915044Z
example failure 2021-11-20T15:23:30.3278019Z
example failure 2021-11-19T20:55:30.5504277Z
example failure 2021-11-19T20:51:22.8321796Z
example failure 2021-11-19T20:08:01.2080531Z
example failure 2021-11-19T20:03:29.7675584Z
example failure 2021-11-19T19:59:04.5679837Z
example failure 2021-11-19T18:45:31.8633418Z
example failure 2021-11-19T18:41:12.4945872Z
example failure 2021-11-19T18:36:51.5470911Z
example failure 2021-11-19T18:08:23.4794449Z
example failure 2021-11-19T18:04:03.5441995Z
example failure 2021-11-19T17:59:47.0296020Z
example failure 2021-11-19T14:43:22.8691720Z
example failure 2021-11-19T03:12:03.8746597Z
example failure 2021-11-19T03:07:46.2717886Z
example failure 2021-11-19T02:40:36.0386306Z
example failure 2021-11-19T02:36:17.2567565Z
example failure 2021-11-19T02:31:52.8425448Z
example failure 2021-11-19T02:15:33.6498027Z
example failure 2021-11-18T19:02:42.3670592Z
example failure 2021-11-18T18:58:22.2222225Z
example failure 2021-11-18T18:53:51.9365019Z
example failure 2021-11-18T18:26:28.1468786Z
example failure 2021-11-18T18:21:35.1883509Z
example failure 2021-11-18T18:17:06.9691840Z
example failure 2021-11-18T15:57:04.3058761Z
example failure 2021-11-18T15:34:10.1550027Z
example failure 2021-11-18T15:29:45.8816436Z
example failure 2021-11-18T15:25:13.9544191Z
example failure 2021-11-18T15:02:58.0231442Z
example failure 2021-11-18T14:58:47.1318858Z
example failure 2021-11-18T14:54:41.3649467Z
example failure 2021-11-18T13:51:27.3727238Z
example failure 2021-11-18T13:47:07.7675720Z
example failure 2021-11-18T13:42:47.7965414Z
example failure 2021-11-18T12:19:29.8869140Z
example failure 2021-11-18T12:15:02.4065579Z
example failure 2021-11-18T12:10:36.3803206Z
example failure 2021-11-18T09:40:04.5323545Z
example failure 2021-11-18T09:31:30.3034713Z
Full exception stacktrace
Usage tip: To enable automatic navigation to failure message, open the following links with CTRL/CMD-click.
example failure 2021-11-22T02:31:14.3906694Z
Full exception stacktrace
Usage tip: To enable automatic navigation to failure message, open the following links with CTRL/CMD-click.
example failure 2021-11-22T09:47:20.9969894Z
Full exception stacktrace
Usage tip: To enable automatic navigation to failure message, open the following links with CTRL/CMD-click.
example failure 2021-11-18T09:35:44.7273781Z
Full exception stacktrace
Usage tip: To enable automatic navigation to failure message, open the following links with CTRL/CMD-click.
example failure 2021-11-22T09:22:39.1838362Z
Full exception stacktrace
Usage tip: To enable automatic navigation to failure message, open the following links with CTRL/CMD-click.
example failure 2021-11-19T03:16:13.0890885Z
Full exception stacktrace
Usage tip: To enable automatic navigation to failure message, open the following links with CTRL/CMD-click.
example failure 2021-11-22T11:02:26.0034413Z
Full exception stacktrace
lhotari commentedon Nov 23, 2021
@Jason918 good catch! Could it fix the various failures listed in my previous comment?
Jason918 commentedon Nov 23, 2021
OK,I will look into these.