Repository navigation
fix: back off on X-Ray ThrottledException - #9413
Merged
Merged
Conversation
vicheey
reviewed
Nov 14, 2026
| LOG.warning( | ||
| "Throttled by CloudWatch Logs API, consider pulling logs for certain resources. " | ||
| "Increasing the poll interval time for resource %s to %s seconds", | ||
| "Next poll for resource %s in %s seconds", |
Contributor
There was a problem hiding this comment.
Thank you for improvement.
vicheey
approved these changes
Nov 14, 2026
bnusunny
approved these changes
Nov 14, 2026
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue(s) does this change fix?
Related to #9403; follows up on the review of #9404.
Why is this change necessary?
X-Ray reports
ThrottledException(HTTP 429) forGetTraceSummaries,BatchGetTraces, andGetServiceGraph. Tailing currently recognizes onlyThrottlingException, so real X-Ray throttles terminate the tail instead of backing off.How does it address the issue?
Stubberregressions for all three X-Ray operations and test both error codes in the existing trace and service-graph tests.AccessDeniedExceptionafter a throttle across CloudWatch, X-Ray traces, and service graphs, asserting the original error escapes without an extra sleep.The six new regression cases produce five failures and one pass on unmodified
develop: all three real X-Ray API throttles are re-raised, and both X-Ray error-sequence cases stop at the throttle.Validation: Full Linux/Python 3.11
make prpassed: 9,777 tests, 28 skipped, 94.14% coverage, with formatting, linting, and type checks passing. Locally, all 171 observability/logs tests and type checks passed; the resolved combination with #9404 passed 179 affected tests.What side effects does this change have?
This PR targets current
developindependently of #9404 and does not duplicate its bounded-backoff changes. Both PRs edit adjacent lines in the X-Ray error handler, so the second to merge will need a small conflict resolution. The resolved combination passed all 179 affected tests locally. Interruptible waits remain a separate follow-up. No dependency or public-interface changes.Mandatory Checklist
make prpassesmake update-reproducible-reqsif dependencies were changed (not needed)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.