-
Notifications
You must be signed in to change notification settings - Fork 219
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 #1273 AsyncMethodsRateLimiter does not handle ratelimitted errors properly #1274
Conversation
…d errors properly
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1274 +/- ##
============================================
+ Coverage 74.34% 74.49% +0.14%
- Complexity 4130 4135 +5
============================================
Files 444 444
Lines 13102 13108 +6
Branches 1323 1324 +1
============================================
+ Hits 9741 9765 +24
+ Misses 2588 2570 -18
Partials 773 773 ☔ View full report in Codecov by Sentry. |
Thanks for making this fix @seratch ! I'm probably missing something, but in this block in
does |
Thanks for the comment. I thought so too when I checked this issue, but actually it is not necessary. I found that the only changes needed for fixing this issue is the correction in AsyncMethodsRateLimiter. In rate-limited error scenario, setRateLimitedMethodRetryEpochMillis method call is done on the underlying MethodsClient side, so all the things async side should do is just to check the existence of the rate limited state of the API method. |
Nice. Thanks for confirming and thanks again for the fix! |
This pull request resolves #1273 ; Only the AsyncMethodsClient has been having this bug, so we don't need to make similar changes to SCIM/SCIMv2/Audit Logs API clients.
Category (place an
x
in each of the[ ]
)Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.