Factor new retries option in client builder#6887
Factor new retries option in client builder#6887dagnir merged 3 commits intofeature/master/2026-new-retriesfrom
Conversation
3572070 to
d189e00
Compare
This commit updates the retry mode resolution behavior for SDK clients: - When resolving the RetryStrategy to use, also determine whether retry 2.1 behavior should be enabled for that retry strategy. - If the `newRetries2026Default` property is set in customization.config for a service, ensure that this is treated as the default option for `AWS_NEW_RETRIES_2026` when building the client if not set anywhere else.
d189e00 to
cd95577
Compare
| new TestData("lEgAcY", null, null, null, RetryMode.LEGACY), | ||
| new TestData("sTanDaRd", null, null, null, RetryMode.STANDARD), | ||
| new TestData("aDaPtIvE", null, null, null, RetryMode.ADAPTIVE_V2), | ||
| new TestData("legacy", null, null, null, null, null, null, RetryMode.LEGACY), |
There was a problem hiding this comment.
Nit: seems there are some test appeared repeatedly?
There was a problem hiding this comment.
line 74 to 79 is identical to 68 to 73?
There was a problem hiding this comment.
Ah yeah you're right. Will remove!
There was a problem hiding this comment.
nm, realized the intention for 68-73 was for 'false'. Updated.
| new TestData("lEgAcY", null, null, null, RetryMode.LEGACY), | ||
| new TestData("sTanDaRd", null, null, null, RetryMode.STANDARD), | ||
| new TestData("aDaPtIvE", null, null, null, RetryMode.ADAPTIVE_V2), | ||
| new TestData("legacy", null, null, null, null, null, null, RetryMode.LEGACY), |
There was a problem hiding this comment.
line 74 to 79 is identical to 68 to 73?
|
e528aa4
into
feature/master/2026-new-retries
|
This pull request has been closed and the conversation has been locked. Comments on closed PRs are hard for our team to see. If you need more assistance, please open a new issue that references this one. |



Motivation and Context
This commit updates the retry mode resolution behavior for SDK clients:
2.1 behavior should be enabled for that retry strategy.
newRetries2026Defaultproperty is set incustomization.config for a service, ensure that this is treated as
the default option for
AWS_NEW_RETRIES_2026when building theclient if not set anywhere else.
Modifications
SdkClientOption.NEW_RETRIES_2026_DEFAULTinmergeInternalDefaults()if set on thecustomization.configRetryMode.Resolverto reference theAWS_NEW_RETRIES_2026config when resolving the appropriateRetryModeRetryStrategybased onRetryMode, also determine whether 2.1 behavior should be enabled.Testing
NewRetries2026ResolverRetryMode.Resolverunit testingScreenshots (if appropriate)
Types of changes
Checklist
mvn installsucceedsscripts/new-changescript and following the instructions. Commit the new file created by the script in.changes/next-releasewith your changes.License