Skip to content

KAFKA-9544; Fix flaky test AdminClientTest.testDefaultApiTimeoutOverride#8101

Merged
hachikuji merged 1 commit intotrunkfrom
KAFKA-9544
Feb 19, 2020
Merged

KAFKA-9544; Fix flaky test AdminClientTest.testDefaultApiTimeoutOverride#8101
hachikuji merged 1 commit intotrunkfrom
KAFKA-9544

Conversation

@hachikuji
Copy link
Copy Markdown
Contributor

@hachikuji hachikuji commented Feb 12, 2020

There is a race condition with the backoff sleep in the test case and setting the next allowed send time in the AdminClient. To fix it, we allow the test case to do the backoff sleep multiple times if needed.

The test failure was fairly easy to reproduce prior to this fix. With the fix, I could not reproduce the problem after 500 runs.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

Copy link
Copy Markdown
Contributor

@rajinisivaram rajinisivaram left a comment

Choose a reason for hiding this comment

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

@hachikuji Thanks for the PR, LGTM

@hachikuji hachikuji merged commit 5a19fe6 into trunk Feb 19, 2020
hachikuji added a commit that referenced this pull request Feb 19, 2020
…ride` (#8101)

There is a race condition with the backoff sleep in the test case and setting the next allowed send time in the AdminClient. To fix it, we allow the test case to do the backoff sleep multiple times if needed.

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>
@ijuma ijuma deleted the KAFKA-9544 branch October 15, 2020 07:47
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