-
Notifications
You must be signed in to change notification settings - Fork 14.3k
MINOR: Cleanup Raft Module #19284
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: Cleanup Raft Module #19284
Conversation
Hey @chia7712 |
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.
@sjhajharia thanks for this cleanup. only one comment is left.
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 for this PR, left some comments.
It seems UpdateVoterHandlerState
is unused in project, It could be removed.
raft/src/test/java/org/apache/kafka/snapshot/SnapshotWriterReaderTest.java
Show resolved
Hide resolved
Thanks @m1a2st for the review. |
Given that now we support Java 17 on our brokers, this PR replace the use of the following in raft module: - Collections.singletonList() and Collections.emptyList() with List.of() - Collections.singletonMap() and Collections.emptyMap() with Map.of() - Collections.singleton() and Collections.emptySet() with Set.of() - Arrays.asList() with List.of() Reviewers: Ken Huang <[email protected]>, Chia-Ping Tsai <[email protected]>
Given that now we support Java 17 on our brokers, this PR replace the use of the following in raft module:
Reviewers: Ken Huang [email protected], Chia-Ping Tsai [email protected]