Skip to content

Add backoff with jitter to Kinesis stabiltiy test #6068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 30, 2025

Conversation

RanVaknin
Copy link
Contributor

@RanVaknin RanVaknin commented Apr 28, 2025

Context

The Kinesis Stability test was previously failing due to an eventual consistency - was fixed in #6006.

After the fix, the test was still failing because the subscribeToShard() call is hitting server side rate limit, and because of a customization that prevents retries on this operation, the test cannot take advantage of the retry policy of using exponential backoff with jitter.

In this test, I added manual backoff with jitter to space out the requests and avoid rate limiting.

Testing

Testing with a @RepeatedTest() suites running 8 times in a row.

Before the change
1 failed 1 passed 6 ignored (meaning they failed, retried up to 3 times and eventually succeeded)
duration: 5min and 22-31 seconds

After the change
8 passed.
duration: 5min and 26-34 seconds

@RanVaknin RanVaknin requested a review from a team as a code owner April 28, 2025 20:57
@RanVaknin RanVaknin force-pushed the rvaknin/more-flaky-integ-test-fix branch from ae7335e to 1717ae8 Compare April 29, 2025 19:47
Copy link

@RanVaknin RanVaknin added this pull request to the merge queue Apr 30, 2025
Merged via the queue into master with commit 6712857 Apr 30, 2025
32 of 35 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