Skip to content

KAFKA-19109: Don't print null in kafka-metadata-quorum describe status #19543

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

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

FrankYang0529
Copy link
Member

@FrankYang0529 FrankYang0529 commented Apr 23, 2025

If directory id is Uuid.ZERO_UUID, the command don't print the result.

@chia7712
Copy link
Member

@FrankYang0529 could you please test the script on your local?

@FrankYang0529
Copy link
Member Author

  1. Start server.
./gradlew clean build -x test
rm -rf /tmp/kraft-combined-logs
sed -i '' 's/controller.quorum.bootstrap.servers=localhost:9093/controller.quorum.voters=1@localhost:9093/' config/server.properties
./bin/kafka-storage.sh format -t "zuV6tFqAQhSGfFe97O-9cw" --config ./config/server.properties
./bin/kafka-server-start.sh ./config/server.properties
  1. Check output.
> ./bin/kafka-metadata-quorum.sh --bootstrap-controller localhost:9093 describe --status
ClusterId:              zuV6tFqAQhSGfFe97O-9cw
LeaderId:               1
LeaderEpoch:            1
HighWatermark:          19
MaxFollowerLag:         0
MaxFollowerLagTimeMs:   0
CurrentVoters:          [{"id": 1, "endpoints": ["CONTROLLER://localhost:9093"]}]
CurrentObservers:       []

@FrankYang0529 FrankYang0529 requested a review from chia7712 April 24, 2025 04:08
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.

Test in my local machine, LGTM
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants