Add HTTP retry flight definitions to CommonFlight, Fixes AB#3536277#3008
Draft
Add HTTP retry flight definitions to CommonFlight, Fixes AB#3536277#3008
Conversation
|
✅ Work item link check complete. Description contains link AB#3536277 to an Azure Boards work item. |
Co-authored-by: shahzaibj <37125644+shahzaibj@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add HTTP retry flight definitions to CommonFlight, Fixes AB#3536277
Add HTTP retry flight definitions to CommonFlight
Mar 7, 2026
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.
Adds 6 new flight-gated entries to
CommonFlightto enable runtime control of HTTP retry behavior (max attempts, delays, backoff, jitter, Retry-After header respect).Changes
common4j/.../flighting/CommonFlight.java— 6 new enum constants appended:HTTP_RETRY_MAX_ATTEMPTS"HttpRetryMaxAttempts"3HTTP_RETRY_INITIAL_DELAY_MS"HttpRetryInitialDelayMs"1000HTTP_RETRY_EXTENSION_FACTOR"HttpRetryExtensionFactor"2HTTP_RETRY_JITTER_FACTOR"HttpRetryJitterFactor"0.5HTTP_RETRY_RESPECT_RETRY_AFTER"HttpRetryRespectRetryAfter"trueHTTP_RETRY_MAX_TOTAL_DELAY_MS"HttpRetryMaxTotalDelayMs"60000All entries follow the existing
CommonFlight(String key, Object defaultValue)constructor pattern. No existing entries were modified. This is a foundational PBI — the retry logic consuming these flights is not included here.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.