Skip to content

Comments

MINOR: Update inconsistent description for kafka-streams-application-reset and kafka-producer-perf-test#20445

Merged
chia7712 merged 11 commits intoapache:trunkfrom
Yunyung:MINOR-Update-inconsistent-description-for-bootstrap-server
Nov 1, 2025
Merged

MINOR: Update inconsistent description for kafka-streams-application-reset and kafka-producer-perf-test#20445
chia7712 merged 11 commits intoapache:trunkfrom
Yunyung:MINOR-Update-inconsistent-description-for-bootstrap-server

Conversation

@Yunyung
Copy link
Collaborator

@Yunyung Yunyung commented Aug 29, 2025

The value placeholder for the --bootstrap-server argument in the usage
output (e.g., when running with --help) has been corrected from the
plural form (BOOTSTRAP-SERVERS) to the consistent singular form
(BOOTSTRAP-SERVER).

Reviewers: Chia-Ping Tsai chia7712@gmail.com

@github-actions github-actions bot added triage PRs from the community tools small Small PRs labels Aug 29, 2025
@Yunyung
Copy link
Collaborator Author

Yunyung commented Aug 29, 2025

kafka-streams-application-reset.sh

Before:
Screenshot from 2025-08-30 00-41-46

After:
Screenshot from 2025-09-29 09-01-37

kafka-producer-perf-test.sh

(See --bootstrap-server)
Before:

usage: kafka-producer-perf-test
       [-h] [--bootstrap-server BOOTSTRAP-SERVERS] --topic TOPIC --num-records NUM-RECORDS [--payload-delimiter PAYLOAD-DELIMITER] --throughput THROUGHPUT [--producer-props PROP-NAME=PROP-VALUE [PROP-NAME=PROP-VALUE ...]]
       [--command-property PROP-NAME=PROP-VALUE [PROP-NAME=PROP-VALUE ...]] [--producer.config CONFIG-FILE] [--command-config CONFIG-FILE] [--print-metrics] [--transactional-id TRANSACTIONAL-ID] [--transaction-duration-ms TRANSACTION-DURATION] [--warmup-records WARMUP-RECORDS]
       [--reporting-interval INTERVAL-MS] (--record-size RECORD-SIZE | --payload-file PAYLOAD-FILE | --payload-monotonic)

After:

usage: kafka-producer-perf-test
       [-h] [--bootstrap-server BOOTSTRAP-SERVER] --topic TOPIC --num-records NUM-RECORDS [--payload-delimiter PAYLOAD-DELIMITER] --throughput THROUGHPUT [--producer-props PROP-NAME=PROP-VALUE [PROP-NAME=PROP-VALUE ...]]
       [--command-property PROP-NAME=PROP-VALUE [PROP-NAME=PROP-VALUE ...]] [--producer.config CONFIG-FILE] [--command-config CONFIG-FILE] [--print-metrics] [--transactional-id TRANSACTIONAL-ID] [--transaction-duration-ms TRANSACTION-DURATION] [--warmup-records WARMUP-RECORDS]
       [--reporting-interval INTERVAL-MS] (--record-size RECORD-SIZE | --payload-file PAYLOAD-FILE | --payload-monotonic)

Copy link
Collaborator

@DL1231 DL1231 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 patch, left a small comment.

.type(String.class)
.metavar("BOOTSTRAP-SERVERS")
.metavar("BOOTSTRAP-SERVER")
.dest("bootstrapServers")
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: bootstrapServer

ConfigPostProcessor.bootstrapServers -> bootstrapServer

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done. Thanks for the review.

Copy link
Contributor

@frankvicky frankvicky left a comment

Choose a reason for hiding this comment

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

Please fix the build error.

@Yunyung
Copy link
Collaborator Author

Yunyung commented Aug 30, 2025

Done. Thanks.

Copy link
Collaborator

@m1a2st m1a2st 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 this patch, left a comment

if (CommandLineUtils.isPrintVersionNeeded(this)) {
CommandLineUtils.printVersionAndExit();
}
CommandLineUtils.checkRequiredArgs(parser, options, bootstrapServerOption);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you also add a test to verify that the bootstrap-server argument is required and that the command fails with a proper error message if it is missing?

@github-actions github-actions bot removed the triage PRs from the community label Aug 31, 2025
@Yunyung
Copy link
Collaborator Author

Yunyung commented Aug 31, 2025

I’ve added the test and made slight updates to the code and docs. Also updated the "After" screenshot above. Thanks for the review.

.ofType(String.class)
.describedAs("server to connect to");
.describedAs("server to connect to")
.required();
Copy link
Member

Choose a reason for hiding this comment

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

Is this breaking change included by the KIP?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll revert the change that requires bootstrapServer, since the previous KIP-865 is ambiguous and highly dependent on the implementation. It's better not to introduce the breaking change here.

That is, this PR only updates the docs and text. Thanks.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated. And also update the screenshot above.

Copy link
Member

Choose a reason for hiding this comment

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

We should keep the word REQUIRED since the bootstrapServerOption is now completely required. That should be addressed in #16437 😄

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure. I've reverted the latest commit, thanks!

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, my last comment was incorrect. It has a default value, so the config is definitely optional

String bootstrapServerValue = "localhost:9092";

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No worries, I was lost too, haha.

Updated.

@Yunyung Yunyung changed the title MINOR: Update inconsistent description for bootstrap-server in docs and command-line MINOR: Update inconsistent description for kafka-streams-application-reset and kafka-producer-perf-test Sep 29, 2025
@chia7712 chia7712 merged commit 1e547de into apache:trunk Nov 1, 2025
28 checks passed
@chia7712
Copy link
Member

chia7712 commented Nov 1, 2025

@frankvicky @DL1231 @m1a2st Sorry about that - I forgot to add you to reviewers. my bad :(

eduwercamacaro pushed a commit to littlehorse-enterprises/kafka that referenced this pull request Nov 12, 2025
…reset and kafka-producer-perf-test (apache#20445)

The value placeholder for the --bootstrap-server argument in the usage
output (e.g., when running with --help) has been corrected from the
plural form (BOOTSTRAP-SERVERS) to the consistent singular form
(BOOTSTRAP-SERVER).

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
TaiJuWu pushed a commit to TaiJuWu/kafka that referenced this pull request Dec 3, 2025
…reset and kafka-producer-perf-test (apache#20445)

The value placeholder for the --bootstrap-server argument in the usage
output (e.g., when running with --help) has been corrected from the
plural form (BOOTSTRAP-SERVERS) to the consistent singular form
(BOOTSTRAP-SERVER).

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
shashankhs11 pushed a commit to shashankhs11/kafka that referenced this pull request Dec 15, 2025
…reset and kafka-producer-perf-test (apache#20445)

The value placeholder for the --bootstrap-server argument in the usage
output (e.g., when running with --help) has been corrected from the
plural form (BOOTSTRAP-SERVERS) to the consistent singular form
(BOOTSTRAP-SERVER).

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants