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


##########
raft/src/main/java/org/apache/kafka/raft/QuorumState.java:
##########
@@ -381,7 +381,7 @@ public void transitionToResigned(List<ReplicaKey> 
preferredSuccessors) {
      */
     public void transitionToUnattached(int epoch, OptionalInt leaderId) {
         int currentEpoch = state.epoch();
-        if (epoch < currentEpoch || (epoch == currentEpoch && 
!isProspective())) {
+        if (epoch < currentEpoch || (epoch == currentEpoch && 
(!isProspective() || isResigned()))) {

Review Comment:
   Please fix doc in line 43, 44.



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to