-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][test] Fix flaky NonPersistentTopicTest.testProducerRateLimit #24951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lhotari
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #24951 +/- ##
=============================================
+ Coverage 38.77% 74.21% +35.43%
- Complexity 13380 33882 +20502
=============================================
Files 1856 1913 +57
Lines 145342 149505 +4163
Branches 16886 17372 +486
=============================================
+ Hits 56353 110948 +54595
+ Misses 81459 29699 -51760
- Partials 7530 8858 +1328
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
…pache#24951) (cherry picked from commit 7c343d0)
…pache#24951) (cherry picked from commit 7c343d0) (cherry picked from commit 997158b)
…pache#24951) (cherry picked from commit 7c343d0) (cherry picked from commit 997158b)
…pache#24951) (cherry picked from commit 7c343d0) (cherry picked from commit d4f0269)
…pache#24951) (cherry picked from commit 7c343d0) (cherry picked from commit d4f0269)
Fixes #24909
Motivation
The test uses 5 threads and produces 10 messages. It happens frequently that the test fails because the rate limit is not triggered.
Modifications
To increase the probability of triggering the rate limit, the number of threads is increased from 5 to 10, and the number of messages produced is increased from 10 to 500.
Verifying this change
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: pdolif#18