-
Notifications
You must be signed in to change notification settings - Fork 14.4k
KAFKA-19321: Added share_consumer_performance.py and related system tests #19836
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
Conversation
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.
Thanks for the PR.
} | ||
|
||
if version >= V_4_0_0: |
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.
This should be V_4_1_0
.
return | ||
if node is None: | ||
node = self.nodes[0] | ||
consumer_group_script = self.path.script("kafka-configs.sh", node) |
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.
How about config_script
? This code has nothing to do with consumer groups.
self.security_config.setup_node(node) | ||
|
||
cmd = self.start_cmd(node) | ||
self.logger.debug("Share Consumer performance %d command: %s", idx, cmd) |
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.
nit: "consumer" please.
kafka_node.account.create_file(COMMAND_CONFIG_FILE, prop_file) | ||
|
||
wait_until(lambda: self.kafka.set_group_offset_reset_strategy(group=share_group, strategy="earliest", command_config=COMMAND_CONFIG_FILE), | ||
timeout_sec=20, backoff_sec=2, err_msg="auto.offset.reset not set to earliest") |
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.
share.auto.offset.reset
because it's specific to share groups.
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.
I don't think you changed this. It should be share.auto.offset.reset not set to earliest
. And I also suggest that the function set_group_offset_reset_strategy
becomes set_share_group_auto_offset_reset_strategy
.
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.
Thanks for the review. Forgot about the other occurrences. The re is one occurrence in a different file as well -> test_performance_services.py. Changed that as well
kafka_node.account.create_file(COMMAND_CONFIG_FILE, prop_file) | ||
|
||
wait_until(lambda: self.kafka.set_group_offset_reset_strategy(group=share_group, strategy="earliest", command_config=COMMAND_CONFIG_FILE), | ||
timeout_sec=20, backoff_sec=2, err_msg="auto.offset.reset not set to earliest") |
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.
I don't think you changed this. It should be share.auto.offset.reset not set to earliest
. And I also suggest that the function set_group_offset_reset_strategy
becomes set_share_group_auto_offset_reset_strategy
.
…up_auto_offset_reset_strategy
This PR includes some performance system tests utilizing the
kafka-share-consumer-perf.sh tool for share groups
Reviewers: Andrew Schofield aschofield@confluent.io