kafka icon indicating copy to clipboard operation
kafka copied to clipboard

KAFKA-13914: Add command line tool kafka-metadata-quorum.sh

Open dengziming opened this issue 2 years ago • 0 comments

More detailed description of your change, if necessary. The PR title and PR message become the squashed commit message, so use a separate comment to ping reviewers. Add MetadataQuorumCommand to describe quorum status, I'm trying to use arg4j style command format, currently, we only support one sub-command which is "describe".

# describe quorum status
kafka-metadata-quorum.sh --bootstrap-server localhost:9092 describe

# specify AdminClient properties
kafka-metadata-quorum.sh --bootstrap-server localhost:9092 --command-config config.properties describe

Summary of testing strategy (including rationale) for the feature or bug fix. Unit and/or integration tests are expected for any behaviour change and system tests should be considered for larger changes.

MetadataQuorumCommandTest and MetadataQuorumCommandErrorTest

Committer Checklist (excluded from commit message)

  • [ ] Verify design and implementation
  • [ ] Verify test coverage and CI build status
  • [ ] Verify documentation (including upgrade notes)

dengziming avatar Aug 02 '22 04:08 dengziming