Skip to content

MINOR; Make KafkaAdminClientTest.testDescribeLogDirsPartialFailure and KafkaAdminClientTest.testAlterReplicaLogDirsPartialFailure test more reliable#9091

Merged
hachikuji merged 2 commits intoapache:trunkfrom
dajac:minor-fix-flaky-admin-client-tests
Sep 10, 2020

Conversation

@dajac
Copy link
Copy Markdown
Member

@dajac dajac commented Jul 28, 2020

I have seem them failing locally from times to times. It seems that the changes made in #8864 have made them more fragile. I have updated them to be more reliable.

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
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@dajac thanks for this fixing. This flaky bothers me also :(

testMetadataRetries is also flaky on my local. Do you want to fix it in this PR? Or I can file another PR to fix it.

@dajac
Copy link
Copy Markdown
Member Author

dajac commented Jul 28, 2020

@chia7712 Ack. I reverted testMetadataRetries back to the original version prior to #8864. That test is specific for the retries so it doesn't make sense to remove the retries config.

Copy link
Copy Markdown
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

That test is specific for the retries so it doesn't make sense to remove the retries config.

Thanks! I looped this test 100 times, all pass!

dajac added 2 commits July 30, 2020 16:31
…d KafkaAdminClientTest.testAlterReplicaLogDirsPartialFailure test more reliable
@dajac dajac force-pushed the minor-fix-flaky-admin-client-tests branch from be543d6 to cbbc1cd Compare July 30, 2020 14:31
@dajac
Copy link
Copy Markdown
Member Author

dajac commented Jul 30, 2020

rebased to fix conflicts.

Copy link
Copy Markdown
Contributor

@hachikuji hachikuji left a comment

Choose a reason for hiding this comment

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

LGTM.

@hachikuji
Copy link
Copy Markdown
Contributor

I rebased and tested locally. Merging to trunk.

@hachikuji hachikuji merged commit e4eab37 into apache:trunk Sep 10, 2020
@dajac dajac deleted the minor-fix-flaky-admin-client-tests branch September 11, 2020 05:03
abbccdda pushed a commit to abbccdda/kafka that referenced this pull request Sep 28, 2020
Fixes flakiness in `KafkaAdminClientTest` as a result of apache#8864. Addresses the following flaky tests:

- testAlterReplicaLogDirsPartialFailure
- testDescribeLogDirsPartialFailure
- testMetadataRetries

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, Jason Gustafson <jason@confluent.io>
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.

3 participants