-
Notifications
You must be signed in to change notification settings - Fork 14.6k
KAFKA-18699: Cleanup Metadata Module #20346
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: trunk
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.
The cleanup for migrating suitable classes to records has a corresponding JIRA ticket: KAFKA-18696.
For metadata cleanup, you can take my ticket: KAFKA-18699.
return other.current == current && other.next == next; | ||
} | ||
|
||
record BrokerControlStates(BrokerControlState current, BrokerControlState next) { | ||
@Override |
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.
Why not remove toString as well? As far as I know, the only difference is that the parentheses become square brackets.
Thanks @mingyen066 |
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.
Thanks @sjhajharia for this patch, left some comments
metadata/src/main/java/org/apache/kafka/image/MetadataProvenance.java
Outdated
Show resolved
Hide resolved
metadata/src/main/java/org/apache/kafka/metadata/placement/TopicAssignment.java
Show resolved
Hide resolved
Thanks @m1a2st for the review. I have addressed the comments. Pls re-review. Thanks! |
https://issues.apache.org/jira/browse/KAFKA-18699
This PR aims at cleaning up the
metadata
module further by getting ridof some extra code which can be replaced by record