KAFKA-8026: Fix for Flaky RegexSourceIntegrationTest#7051
KAFKA-8026: Fix for Flaky RegexSourceIntegrationTest#7051emschwar wants to merge 1 commit intoapache:2.3from
Conversation
This is a 2.3-idiomatic recreation of Bill Bejeck <bbejeck@gmail.com>'s original patch for the 1.1 branch.
|
Thanks for the PR. What do you mean by
The ticket is resolved already. Why is this PR needed? |
|
The changes resolved by the ticket seem to have only been made on the 1.1 branch; when I inspected the 2.3 branch, I didn't see the related changes, and I found that repeatedly running that one specific test showed intermittent failures. After updating Bill Bejeck's original patch to 2.3 (using Duration instead of TimeUtils, etc.), the intermittent failures disappeared, so I thought I'd let y'all know. :) |
|
@emschwar thanks for the PR. I think the confusion around this PR for 1.1 it that I had to make separate changes is because in Java 7 you can't sort So to resolve the flaky tests, I used a different approach #6459 (comment) So for all branches So I think it's best if we don't merge this PR. But if you found adding the Thanks for understanding! \cc @mjsax |
|
Closing this PR as this issue should be covered via #7281 |
This is a 2.3-idiomatic recreation of Bill Bejeck
bbejeck@gmail.com's original patch for the 1.1 branch, that seems to have been inadvertently omitted. I'm not sure if this PR ought to be against the 2.3 branch, or trunk; it should apply cleanly to either.
More detailed description of your change,
if necessary. The PR title and PR message become
the squashed commit message, so use a separate
comment to ping reviewers.
This change prevents tests from sharing a single KafkaStreams instance across tests, and closes each tests's individual KafkaStreams instance before proceeding to the next test.
Summary of testing strategy (including rationale)
for the feature or bug fix. Unit and/or integration
tests are expected for any behaviour change and
system tests should be considered for larger changes.
I ran the RegexSourceIntegrationTest 20 times in isolation, and was able to reproduce the flakiness before, and unable to reproduce after this change.
Committer Checklist (excluded from commit message)