-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[fix] Avoid thread.sleep usage instead semaphore as replacement #1943
[fix] Avoid thread.sleep usage instead semaphore as replacement #1943
Conversation
Committer: Vipin Sharma <sharmavipin1310@gmail.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: shharma-vipin The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/check-cla |
/check-cla |
1 similar comment
/check-cla |
/check-cla |
Need help with cla/linuxfoundation. Not able to clear that github stage. |
/assign @yue9944882 |
/unassign @yue9944882 |
/check-cla |
1 similar comment
/check-cla |
cla bot - showing this as an error - "cla/linuxfoundation — shharma-vipin authorized, but 1 other problem". |
/check-cla |
/check-sla |
I think one of your commits has a different email address? |
Thank you for sending in the PR. However, there is not much difference between using a TimedSemaphore and just using For this particular test, the right way to fix it would be to inject a mock However, looking at the code I'm pretty skeptical that this test will ever be racy, so it's probably not worth the effort. There are a number of other places e.g. Which would be better to fix if you want to fix one of them. Thanks! |
…n/java into fix_bucket_ratelimiter_test
@shharma-vipin ur commit 7d13b01 is authored by |
As per one of the review comment & looking at effectiveness of this change set, closing this PR |
Avoided Thread.sleep() and rather used TimedSemphore() to perform waiting and then let task happen
PR is to fix one of the issue under this PR umbrella #1223