MINOR; Clean up LeaderAndIsrResponse construction in ReplicaManager#becomeLeaderOrFollower#10234
Conversation
…becomeLeaderOrFollower`
jolshan
left a comment
There was a problem hiding this comment.
Thanks for the PR. This really cleans up the code. LGTM
chia7712
left a comment
There was a problem hiding this comment.
+1 if the following question is invalid :)
|
@chia7712 Thanks for the review. I just pushed a commit to address your comment. Could you take another look? |
chia7712
left a comment
There was a problem hiding this comment.
+1 to this nice patch. nit: The topic name is a bit mysterious to me when reading so it would be nice to add some comments :)
|
@chia7712 I just pushed another small commit to fix/improve |
chia7712
left a comment
There was a problem hiding this comment.
+1 again. one question unrelated to this PR is left :)
|
@chia7712 I just pushed a commit to address your comment. Could you take a look? |
This patch refactors the code, which constructs the
LeaderAndIsrResponseinReplicaManager#becomeLeaderOrFollower, to improve the readability and to remove unnecessary operations.Committer Checklist (excluded from commit message)