Skip to content

Fix flaky test DynamoDbJavaClientRetryOnTimeoutIntegrationTest - #7343

Open
S-Saranya1 wants to merge 1 commit into
masterfrom
somepal/fix-flaky-dynamodb-retry-timeout
Open

Fix flaky test DynamoDbJavaClientRetryOnTimeoutIntegrationTest#7343
S-Saranya1 wants to merge 1 commit into
masterfrom
somepal/fix-flaky-dynamodb-retry-timeout

Conversation

@S-Saranya1

@S-Saranya1 S-Saranya1 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Motivation and Context

The test uses a 2ms apiCallAttemptTimeout which is so short that the connection gets cancelled before the SDK can wrap the timeout as ApiCallAttemptTimeoutException, resulting in CancellationException or ConnectionShutdownException instead.

Modifications

Increased apiCallAttemptTimeout from 2ms to 5ms. Still reliably too short for a DynamoDB listTables round trip (~50-200ms), but long enough for the SDK's timeout wrapper to fire properly.

Testing

Ran the test locally with timeout values of 2, 5, 10, 15, and 20ms(10 runs each).
Results:

  • 2ms: 8/10 correct, 2/10 CancellationException
  • 5ms: 10/10 correct
  • 10ms: 10/10 correct
  • 15ms: 10/10 correct
  • 20ms: 10/10 correct

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed
  • I have added a changelog entry. Adding a new entry must be accomplished by running the scripts/new-change script and following the instructions. Commit the new file created by the script in .changes/next-release with your changes.
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license

@S-Saranya1
S-Saranya1 requested a review from a team as a code owner September 2, 2026 22:59
@S-Saranya1
S-Saranya1 force-pushed the somepal/fix-flaky-dynamodb-retry-timeout branch from 705bd11 to 279b23e Compare September 2, 2026 23:50
@S-Saranya1
S-Saranya1 force-pushed the somepal/fix-flaky-dynamodb-retry-timeout branch from 279b23e to 9df8752 Compare September 4, 2026 21:40
@S-Saranya1
S-Saranya1 requested a review from joviegas September 4, 2026 21:52
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