Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/kafkatest/tests/streams/streams_upgrade_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ def get_version_string(self, version):
if version.startswith("0") or version.startswith("1") \
or version.startswith("2.0") or version.startswith("2.1"):
return "Kafka version : " + version
elif "SNAPSHOT" in version:
return "Kafka version.*-SNAPSHOT"
else:
return "Kafka version: " + version

Expand Down Expand Up @@ -536,7 +538,8 @@ def do_rolling_bounce(self, processor, counter, current_generation):
self.old_processors.remove(processor)
self.upgraded_processors.append(processor)

log_monitor.wait_until("Kafka version: " + str(DEV_VERSION),
# checking for the dev version which should be the only SNAPSHOT
log_monitor.wait_until("Kafka version.*-SNAPSHOT",
timeout_sec=60,
err_msg="Could not detect Kafka Streams version " + str(DEV_VERSION) + " in " + str(node.account))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shouldn't str(DEV_VERSION) in the error message also be changed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I wanted to leave the str(DEV_VERSION) as is so it's more clear in the logs if an error occurs

log_monitor.offset = 5
Expand Down