JAkutenshi commented on code in PR #4446:
URL: https://github.com/apache/ignite-3/pull/4446#discussion_r1872550265


##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java:
##########
@@ -2248,6 +2256,46 @@ private static PartitionSet extendPartitionSet(@Nullable 
PartitionSet oldPartiti
         return newPartitionSet;
     }
 
+    private void executeIfLocalNodeIsPrimaryForGroup(

Review Comment:
   In `TableManager` we do the general logic of rebalance after new pending 
assignments handling. Before the PR we're looking for RAFT-group leader and 
then trying to do direct `changePeersAndLearnersAsync` call on leader's client. 
Now we're looking for primary replica (cited method do this) and then sending 
the new primary replica request. If somewhy this general approach failed then 
we're waiting for the failover logic is triggered.



-- 
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: notifications-unsubscr...@ignite.apache.org

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

Reply via email to