Skip to content

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

Merged
merged 5 commits into from
Jun 2, 2025

Conversation

chirag-wadhwa5
Copy link
Contributor

@chirag-wadhwa5 chirag-wadhwa5 commented May 28, 2025

This PR includes some performance system tests utilizing the
kafka-share-consumer-perf.sh tool for share groups

Reviewers: Andrew Schofield aschofield@confluent.io

@github-actions github-actions bot added triage PRs from the community tests Test fixes (including flaky tests) labels May 28, 2025
@AndrewJSchofield AndrewJSchofield added KIP-932 Queues for Kafka ci-approved and removed triage PRs from the community labels May 28, 2025
Copy link
Member

@AndrewJSchofield AndrewJSchofield left a 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:
Copy link
Member

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)
Copy link
Member

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)
Copy link
Member

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")
Copy link
Member

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.

Copy link
Member

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.

Copy link
Contributor Author

@chirag-wadhwa5 chirag-wadhwa5 May 30, 2025

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")
Copy link
Member

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.

@AndrewJSchofield AndrewJSchofield merged commit 942b11b into apache:trunk Jun 2, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-approved KIP-932 Queues for Kafka tests Test fixes (including flaky tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants