You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2020/10/30 08:43:53 UTC

[GitHub] [kafka] dengziming commented on a change in pull request #9531: KAFKA-10661; Add new resigned state for graceful shutdown/initialization

dengziming commented on a change in pull request #9531:
URL: https://github.com/apache/kafka/pull/9531#discussion_r514945125



##########
File path: raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java
##########
@@ -1543,9 +1516,40 @@ private long maybeAppendBatches(
         return timeUnitFlush;
     }
 
+    private long pollResigned(long currentTimeMs) throws IOException {
+        GracefulShutdown shutdown = this.shutdown.get();
+        ResignedState state = quorum.resignedStateOrThrow();
+
+        long endQuorumBackoffMs = maybeSendRequests(

Review comment:
       If the cluster resigns from candidateState, it will also send EndQuorumEpochRequest to all voters?




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

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