TaiJuWu commented on code in PR #20859:
URL: https://github.com/apache/kafka/pull/20859#discussion_r2562640152


##########
raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java:
##########
@@ -2335,8 +2344,11 @@ private boolean handleAddVoterResponse(
         /* These error codes indicate the replica was successfully added or 
the leader is unable to
          * process the request. In either case, reset the update voter set 
timer to back off.
          */
-        if (error == Errors.NONE || error == Errors.REQUEST_TIMED_OUT ||
-            error == Errors.DUPLICATE_VOTER) {
+        if (error == Errors.NONE) {
+            
quorum.followerStateOrThrow().resetUpdateVoterSetPeriod(currentTimeMs);
+            hasAutoJoined = true;

Review Comment:
   Thanks your detailed explanation, I missed this part indeed.



-- 
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]

Reply via email to