-
Notifications
You must be signed in to change notification settings - Fork 15.4k
MINOR: fix Streams version-probing system test #6764
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,6 +70,7 @@ | |
|
|
||
| """ | ||
|
|
||
|
|
||
| class StreamsUpgradeTest(Test): | ||
| """ | ||
| Test upgrading Kafka Streams (all version combination) | ||
|
|
@@ -348,7 +349,7 @@ def update_leader(self): | |
| while retries > 0: | ||
| for p in self.processors: | ||
| found = list(p.node.account.ssh_capture("grep \"Finished assignment for group\" %s" % p.LOG_FILE, allow_fail=True)) | ||
| if len(found) == self.leader_counter[p] + 1: | ||
| if len(found) >= self.leader_counter[p] + 1: | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is one fix. If rebalance happens quickly, we might see this message for the second rebalance early. Cf. #6763
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After #6779 is merged, I can rebase this PR -- we still want this fix I guess :) |
||
| if self.leader is not None: | ||
| raise Exception("Could not uniquely identify leader") | ||
| self.leader = p | ||
|
|
@@ -403,8 +404,7 @@ def start_all_nodes_with(self, version): | |
| timeout_sec=60, | ||
| err_msg="Never saw output '%s' on " % self.processed_msg + str(node2.account)) | ||
|
|
||
|
|
||
| # start third with <version> | ||
| # start third with <version> | ||
| self.prepare_for(self.processor3, version) | ||
| node3 = self.processor3.node | ||
| with node1.account.monitor_log(self.processor1.STDOUT_FILE) as first_monitor: | ||
|
|
@@ -425,7 +425,6 @@ def start_all_nodes_with(self, version): | |
| timeout_sec=60, | ||
| err_msg="Never saw output '%s' on " % self.processed_msg + str(node3.account)) | ||
|
|
||
|
|
||
| @staticmethod | ||
| def prepare_for(processor, version): | ||
| processor.node.account.ssh("rm -rf " + processor.PERSISTENT_ROOT, allow_fail=False) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just Java8 cleanup.