pulsar
pulsar copied to clipboard
[test]Fix Flaky-test: BrokerServiceTest.testLookupThrottlingForClientByClient
Master Issue: https://github.com/apache/pulsar/issues/16521
Motivation
-
Fixes https://github.com/apache/pulsar/issues/16521
-
If the broker responds quickly enough, there may never be concurrency in requests, so we use a
Semaphore
to block the response.
Modifications
Fix UT BrokerServiceTest.testLookupThrottlingForClientByClient
Verifying this change
- [x] Make sure that the change passes the CI checks.
Documentation
Check the box below or label this PR directly.
Need to update docs?
-
[ ]
doc-required
(Your PR needs to update docs and you will update later) -
[x]
doc-not-needed
(Please explain why) -
[ ]
doc
(Your PR contains doc changes) -
[ ]
doc-complete
(Docs have been already added)
/pulsarbot run-failure-checks
/pulsarbot run-failure-checks
/pulsarbot run-failure-checks
Close this PR because this flaky test has already been fixed
@poorbarcode Could you please review this PR?
left a comment:
I feel the origin log "At least one should fail" is better
Updated
@codelipenghui @Technoboy- PTAL also~
/pulsarbot run-failure-checks