Skip to content
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

MINOR: MetadataShell should handle ProducerIdsRecord #11603

Merged
merged 7 commits into from
Feb 12, 2022

Conversation

dengziming
Copy link
Member

@dengziming dengziming commented Dec 14, 2021

More detailed description of your change
We store producer IDs in broker snapshots in #11527, I think we could also add the ability to inspect it using MetadataShell.

Summary of testing strategy (including rationale)
I tested this locally:

[ Kafka Metadata Shell ]
>> cat /producerIds/broker
1
>> cat /producerIds/blockStart
0
>> cat /producerIds/blockEnd
999
>> 

Committer Checklist (excluded from commit message)

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

@dengziming
Copy link
Member Author

Hi, @cmccabe , this is a minor improvement similar to your PR #11527. PTAL.

@dengziming dengziming force-pushed the add-producer-id branch 2 times, most recently from 61478ad to 5b88573 Compare December 14, 2021 15:28
@dengziming
Copy link
Member Author

This change makes the MetadataShell generate the same output as what we get from zookeeper path "/latest_producer_id_block" added in #10504. ping @mumrah to have a look.

Copy link

@hachikuji hachikuji 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 couple suggestions for consideration.

Copy link

@hachikuji hachikuji left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the patch!

@hachikuji hachikuji merged commit 076648e into apache:trunk Feb 12, 2022
@dengziming dengziming deleted the add-producer-id branch October 8, 2022 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants