-
Notifications
You must be signed in to change notification settings - Fork 14.3k
MINOR: Remove casts to KRaftMetadataCache #18579
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
Conversation
4bd584e
to
acd0980
Compare
acd0980
to
abc37bd
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.
LGTM
@ijuma I'm curious as to why this PR doesn't remove the casting from https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/cluster/Partition.scala#L1060 |
I looked for casts vs pattern matching. I agree we should also clean up the latter. For your second example, not sure why it didn't show up in the search I used. |
Thank you for your quick response. I was wondering if there was a specific reason for keeping them. @FrankYang0529 will cleanup it in https://issues.apache.org/jira/browse/KAFKA-18555 |
Reviewers: Mickael Maison <[email protected]>
Reviewers: Mickael Maison <[email protected]>
Reviewers: Mickael Maison <[email protected]>
Committer Checklist (excluded from commit message)