Skip to content

Attempt to fix flaky test SimpleProducerConsumerTestStreamingDispatcherTest.testRedeliveryFailOverConsumer - #10118

Merged
merlimat merged 6 commits into
apache:masterfrom
lhotari:lh-attempt-to-fix-flaky-SimpleProducerConsumerTestStreamingDispatcherTest
Apr 9, 2021
Merged

merlimat merged 6 commits into
apache:masterfrom
lhotari:lh-attempt-to-fix-flaky-SimpleProducerConsumerTestStreamingDispatcherTest

Conversation

@lhotari

@lhotari lhotari commented Apr 1, 2021

Copy link
Copy Markdown
Member

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_MILLIS and RECEIVE_TIMEOUT_MEDIUM_MILLIS constants to be used for 3 different type of use cases of consumer.receive .

@lhotari

lhotari commented Apr 1, 2021

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

2 similar comments
@lhotari

lhotari commented Apr 2, 2021

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@lhotari

lhotari commented Apr 2, 2021

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@lhotari

lhotari commented Apr 2, 2021

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

1 similar comment
@lhotari

lhotari commented Apr 2, 2021

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@lhotari

lhotari commented Apr 2, 2021

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

9 similar comments
@lhotari

lhotari commented Apr 2, 2021

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@lhotari

lhotari commented Apr 3, 2021

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@lhotari

lhotari commented Apr 3, 2021

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@lhotari

lhotari commented Apr 3, 2021

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@lhotari

lhotari commented Apr 3, 2021

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@lhotari

lhotari commented Apr 3, 2021

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@lhotari

lhotari commented Apr 3, 2021

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@lhotari

lhotari commented Apr 4, 2021

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@lhotari

lhotari commented Apr 4, 2021

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@315157973 315157973 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job

@eolivelli

Copy link
Copy Markdown
Contributor

We have flaky tests that are too annoying.
We should disable them asap.
I am going to send a PR tomorrow if no one else does it.
I started a discussion on the dev ML

@315157973

Copy link
Copy Markdown
Contributor

If you disable it, no one will watch these unit tests anymore, and the coverage of this part will gone. Really annoying

@eolivelli

Copy link
Copy Markdown
Contributor

Please check out my email on dev@
The idea is to disable the 4 offending tests and create blocker issues for the release.
There are already tentative PR for fixes but currently the whole PR merge pipeline is stuck.

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.
I would like to merge this patch and other fixes to flaky tests asap

}

@Test(timeOut = 2000)
@Test(timeOut = 5000)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say to remove these ad-hoc timeouts and just rely on the default 300 seconds timeout.

@lhotari
lhotari force-pushed the lh-attempt-to-fix-flaky-SimpleProducerConsumerTestStreamingDispatcherTest branch from c07c50a to bb2cbc7 Compare April 5, 2021 19:11
@lhotari

lhotari commented Apr 6, 2021

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@merlimat
merlimat merged commit 6629b15 into apache:master Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky-test: SimpleProducerConsumerTestStreamingDispatcherTest.testRedeliveryFailOverConsumer

4 participants