chia7712 commented on code in PR #16855:
URL: https://github.com/apache/kafka/pull/16855#discussion_r1712964488
##########
raft/src/test/java/org/apache/kafka/raft/KafkaRaftClientTest.java:
##########
@@ -1249,7 +1249,7 @@ public void
testChannelWokenUpIfLingerTimeoutReachedDuringAppend(boolean withKip
@ValueSource(booleans = { true, false })
public void testHandleEndQuorumRequest(boolean withKip853Rpc) throws
Exception {
int localId = randomReplicaId();
- int oldLeaderId = randomReplicaId() + 1;
+ int oldLeaderId = localId + 1;
Review Comment:
nice finding. The duplicate id will make only one voter and it become
candidate immediately. Hence, the epoch gets increased too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]