Skip to content

Generate DynamoDB retry defaults like Java - #1005

Merged
stobrien89 merged 1 commit into
developfrom
python-client-dynamodb-retries
Dec 3, 2026
Merged

stobrien89 merged 1 commit into
developfrom
python-client-dynamodb-retries

Conversation

@stobrien89

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

Ports AwsDynamoDbRetryIntegration from the Java generator to the Python generator.

DynamoDB and DynamoDB Streams clients get a retries module with dynamodb_retry_plugin, which each client applies. In the standard and adaptive retry modes, it sets DynamoDB's defaults: 4 attempts and a 25 ms backoff scale with full jitter. An attempt count from config or RetryStrategyOptions is kept, and a retry strategy the user built is left as is. The generated module matches the Java template.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@stobrien89
stobrien89 requested a review from a team as a code owner December 1, 2026 20:33
kuhe
kuhe previously approved these changes Dec 1, 2026

@kuhe kuhe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no evidence in this PR since the model isn't present here, but ok

DynamoDB and DynamoDB Streams clients apply a plugin that gives the standard and adaptive retry modes DynamoDB's defaults, 4 attempts and a 25 ms backoff scale, unless the config sets them. This mirrors AwsDynamoDbRetryIntegration in the Java generator.
@stobrien89
stobrien89 merged commit d959344 into develop Dec 3, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants