Conversation
…aybePrintHelpOrVersion
|
/review
" |
|
/describe |
|
/improve
" |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
/gemini review |
TitleRefactor command-line tools to use centralized help/version handling PR TypeOther Description
Diagram Walkthroughflowchart LR
A["JmxTool.main()"] --> B["CommandLineUtils.maybePrintHelpOrVersion()"]
C["StreamsResetter constructor"] --> B
B --> D["Centralized help/version logic"]
|
| Relevant files | |||||
|---|---|---|---|---|---|
| Enhancement |
|
PR Code Suggestions ✨No code suggestions found for the PR. |
There was a problem hiding this comment.
Code Review
This pull request refactors JmxTool and StreamsResetter to use the CommandLineUtils#maybePrintHelpOrVersion utility method. This change correctly simplifies the command-line argument parsing logic for handling --help and --version flags, replacing boilerplate code with a single method call. The refactoring improves code readability and maintainability by reducing duplication. The changes are well-implemented and I have no further suggestions.
…sage key/header support (apache#20301) jira: https://issues.apache.org/jira/browse/KAFKA-19011 kip: https://cwiki.apache.org/confluence/display/KAFKA/KIP-1172%3A+Improve+EndToEndLatency+tool This PR improves the usability and maintainability of the `kafka-e2e-latency.sh` tool: - Replaces fixed-index argument parsing with a proper argument parser (joptsimple) - Adds support for configuring: - -record-key-size: size of the message key - -num-headers: number of headers per message - -record-header-key-size: size of each header key - -record-header-size: size of each header value - Renames existing arguments to align with Kafka CLI conventions: - broker_list → bootstrap-server - num_messages → num-records - message_size_bytes → record-size - properties_file → command-config - Reviewers: Jhen-Yung Hsu <jhenyunghsu@gmail.com>, Ken Huang <s7133700@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
…Id (apache#20420) Add tests for producer state listing with, without, and invalid brokerId. Reviewers: TengYao Chi <kitingiao@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
…is too large (apache#20046) * Log error message if `broker.heartbeat.interval.ms * 2` is large than `broker.session.timeout.ms`. * Add test case `testLogBrokerHeartbeatIntervalMsShouldBeLowerThanHalfOfBrokerSessionTimeoutMs`. Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
- rewrite code to avoid @Suppress - remove unused code - fix test error message Reviewer: Lucas Brutschy <lbrutschy@confluent.io>
Update the supported tags for the 4.1.0 release Reviewers: Luke Chen <showuon@gmail.com>
No description provided.