fix(sync): retry transient 5xx errors in fetchWithRetry - #246
Merged
Conversation
Fixes #245. - Extend fetchWithRetry to retry HTTP 500, 502, 503, 504 with exponential backoff (1s, 2s, 4s, capped at 30s) - Previously only 429 (rate-limit) was retried; a momentary Discourse 500 or 502 counted as a hard failure and exceeded MAX_TOLERATED_FAILURES=1 - Update pagination tests in refresh-discussions to use fake timers so 5xx chunk failures exhaust retries without real-time waits - Add five new fetchWithRetry unit tests covering the 5xx retry path Signed-off-by: Sinduri Guntupalli <sinduri.guntupalli@dynatrace.com>
Contributor
|
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.
Fixes #245.
Type of change
featnew featurefixbug fixrefactorno behavior changedocs/chore/config/perf/style/securityManual checks
npm run build && npm run preview) (UI changes only)discussionUrl(adventure/level changes only)