Skip to content
Merged
Changes from all 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
6 changes: 5 additions & 1 deletion tests/kafkatest/tests/streams/streams_upgrade_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def __init__(self, test_context):
self.leader_counter = {}

processed_msg = "processed [0-9]* records"
base_version_number = str(DEV_VERSION).split("-")[0]

def perform_broker_upgrade(self, to_version):
self.logger.info("First pass bounce - rolling broker upgrade")
Expand Down Expand Up @@ -368,6 +369,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.*" + self.base_version_number + ".*SNAPSHOT"
else:
return "Kafka version: " + version

Expand Down Expand Up @@ -536,7 +539,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.*" + self.base_version_number + ".*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