-
Notifications
You must be signed in to change notification settings - Fork 678
[CORE-13481] model: Log topic_id as base64 #27721
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
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements base64 encoding for topic_id logging to align with KIP-514's recommendation for Topic ID rendering. The change affects how topic IDs are displayed in logs and formatted output throughout the system.
- Adds base64 encoding for topic_id formatting via fmt::formatter specialization
- Implements stream operator overloading for topic_id output consistency
- Updates build dependencies to include the base64 utility module
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
src/v/model/model.cc | Implements fmt::formatter for topic_id using base64 encoding and adds stream operator |
src/v/model/fundamental.h | Declares stream operator and fmt::formatter specialization for topic_id |
src/v/model/BUILD | Adds dependency on utils:base64 module |
8a6643e
to
4153519
Compare
CI test resultstest results on build#72939
test results on build#72953
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we have base/format_to.h
, I suggest using that instead of defining both an operator<<
and a fmt::formatter
`uuid_t` is used elsewhere, `named_type` forwards `operator<<` to the underlying type, so `topic_id` must become a seperate tpe in order to customise printing. Signed-off-by: Ben Pope <[email protected]>
4153519
to
a4f5cdf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
KIP-514 suggests that Topic IDs should be rendered as base64 encoded, so switch logging to use base64.
Backports Required
Release Notes