Cyrill commented on code in PR #7509:
URL: https://github.com/apache/ignite-3/pull/7509#discussion_r2940914942


##########
modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/raft/CmgRaftService.java:
##########
@@ -87,7 +88,7 @@ public CompletableFuture<Boolean> isCurrentNodeLeader() {
         Peer leader = raftService.leader();
 
         if (leader == null) {
-            return raftService.refreshLeader().thenCompose(v -> 
isCurrentNodeLeader());
+            return 
raftService.refreshLeader(RaftCommandRunner.NO_TIMEOUT).thenCompose(v -> 
isCurrentNodeLeader());

Review Comment:
   1. done
   2. well, we will actually have a leader after that timeout and will go the 
'else' branch after the wait has completed. 



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