You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/02/25 01:59:51 UTC

[GitHub] [pulsar] RobertIndie opened a new issue #14465: Flaky-test: ResendRequestTest. testExclusiveCumulativeAckedNormalTopic

RobertIndie opened a new issue #14465:
URL: https://github.com/apache/pulsar/issues/14465


   <!--- 
   
   Instructions for reporting a flaky test using this issue template:
   
   1. Replace test_class in title and body with the short test class name WITHOUT the package name.
   2. Replace test_method in title and body with the test method that failed. Multiple methods are flaky, remove the content that refers to the test method.
   3. Replace "url here" with a url to an example failure. In the Github Actions workflow run logs, you can right click on the line number to copy a link to the line. Example of such url is https://github.com/apache/pulsar/pull/8892/checks?check_run_id=1531075794#step:9:377 . The logs are available for a limited amount of time (usually for a few weeks).
   4. Replace "relevant parts of the exception stacktrace here" with the a few lines of the stack trace that shows at least the exception message and the line of test code where the stacktrace occurred.
   5. Replace "full exception stacktrace here" with the full exception stacktrace from logs. This section will be hidden by default.
   6. Remove all unused fields / content to unclutter the reported issue. Remove this comment too.
   
   -->
   ResendRequestTest.testExclusiveCumulativeAckedNormalTopic is flaky. It fails sporadically.
   
   [example failure](https://github.com/apache/pulsar/runs/5327552441?check_suite_focus=true)
   
   ```
   Error:  testExclusiveCumulativeAckedNormalTopic(org.apache.pulsar.broker.service.ResendRequestTest)  Time elapsed: 60.166 s  <<< FAILURE!
   org.testng.internal.thread.ThreadTimeoutException: Method org.apache.pulsar.broker.service.ResendRequestTest.testExclusiveCumulativeAckedNormalTopic() didn't finish within the time-out 60000
   	at org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:371)
   	at org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:282)
   	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:605)
   	at org.testng.internal.TestInvoker.retryFailed(TestInvoker.java:214)
   	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:58)
   	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
   	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
   	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
   	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
   	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
   	at org.testng.TestRunner.privateRun(TestRunner.java:764)
   	at org.testng.TestRunner.run(TestRunner.java:585)
   	at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
   	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
   	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
   	at org.testng.SuiteRunner.run(SuiteRunner.java:286)
   	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
   	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
   	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
   	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
   	at org.testng.TestNG.runSuites(TestNG.java:1069)
   	at org.testng.TestNG.run(TestNG.java:1037)
   	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:135)
   	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
   	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeLazy(TestNGDirectoryTestSuite.java:123)
   	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:90)
   	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:146)
   	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
   	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
   	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
   	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] shibd commented on issue #14465: Flaky-test: ResendRequestTest. testExclusiveCumulativeAckedNormalTopic

Posted by GitBox <gi...@apache.org>.
shibd commented on issue #14465:
URL: https://github.com/apache/pulsar/issues/14465#issuecomment-1059722148


   [PIP-84](https://github.com/apache/pulsar/wiki/PIP-84-:-Pulsar-client:-Redeliver-command-add-epoch)
   
   In the current implementation, the  consumer epoch and broker epoch may be inconsistent. Unless reconnected, otherwise consumers will always filter message.
   
   When the consumer calls the `consumer.redeliverUnacknowledgedMessages()` method,  Consumer every time epoch + 1.
   But broker may be not increment. In the following code.
   
   https://github.com/apache/pulsar/blob/4f1e39b6921ea401b8c27f17a041d06d85f8abf8/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentDispatcherSingleActiveConsumer.java#L310-L322
   
   This unit test is caused by the inconsistency between the epoch of the consumer and the broker.
   
   @codelipenghui @congbobo184 Can you take a look?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] shibd commented on issue #14465: Flaky-test: ResendRequestTest. testExclusiveCumulativeAckedNormalTopic

Posted by GitBox <gi...@apache.org>.
shibd commented on issue #14465:
URL: https://github.com/apache/pulsar/issues/14465#issuecomment-1058875557


   https://github.com/apache/pulsar/runs/5417203130?check_suite_focus=true#step:9:2179


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] congbobo184 closed issue #14465: Flaky-test: ResendRequestTest. testExclusiveCumulativeAckedNormalTopic

Posted by GitBox <gi...@apache.org>.
congbobo184 closed issue #14465:
URL: https://github.com/apache/pulsar/issues/14465


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] shibd commented on issue #14465: Flaky-test: ResendRequestTest. testExclusiveCumulativeAckedNormalTopic

Posted by GitBox <gi...@apache.org>.
shibd commented on issue #14465:
URL: https://github.com/apache/pulsar/issues/14465#issuecomment-1055554633


   I reproduced it,I'll try to fix it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] codelipenghui commented on issue #14465: Flaky-test: ResendRequestTest. testExclusiveCumulativeAckedNormalTopic

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #14465:
URL: https://github.com/apache/pulsar/issues/14465#issuecomment-1067607340


   Nice catch
   
   @congbobo184 Could you please take a look?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org