Repository navigation
Attempt to fix flaky test SimpleProducerConsumerTestStreamingDispatcherTest.testRedeliveryFailOverConsumer - #10118
Conversation
|
/pulsarbot run-failure-checks |
2 similar comments
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
1 similar comment
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
9 similar comments
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
We have flaky tests that are too annoying. |
|
If you disable it, no one will watch these unit tests anymore, and the coverage of this part will gone. Really annoying |
|
Please check out my email on dev@ This patch is one of those but we cannot merge it is CI does not pass. If you have a better idea please chime in in discussion on the ML. |
| } | ||
|
|
||
| @Test(timeOut = 2000) | ||
| @Test(timeOut = 5000) |
There was a problem hiding this comment.
I'd say to remove these ad-hoc timeouts and just rely on the default 300 seconds timeout.
c07c50a to
bb2cbc7
Compare
|
/pulsarbot run-failure-checks |
Fixes #10117
Motivation & Modifications
SimpleProducerConsumerTestStreamingDispatcherTest.testRedeliveryFailOverConsumer is one of the most flaky tests.
The main goal of the changes in this PR is to increase the receive timeouts in the testRedeliveryFailOverConsumer . When looking at the test class, the receive timeouts weren't consistent and this PR improves the test class by using constants for receive timeouts. There's now
RECEIVE_TIMEOUT_SECONDS,RECEIVE_TIMEOUT_SHORT_MILLISandRECEIVE_TIMEOUT_MEDIUM_MILLISconstants to be used for 3 different type of use cases of consumer.receive .