You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2022/06/07 19:44:30 UTC

[GitHub] [ignite-3] alievmirza commented on a diff in pull request #851: Ignite 17013

alievmirza commented on code in PR #851:
URL: https://github.com/apache/ignite-3/pull/851#discussion_r891644909


##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java:
##########
@@ -1362,6 +1364,49 @@ public void onError(@NotNull Throwable e) {
         });
     }
 
+    /**
+     * Performs {@link RaftGroupService#changePeersAsync(java.util.List, long)} on a provided raft group service.
+     * Retry mechanism is applied to repeat {@link RaftGroupService#changePeersAsync(java.util.List, long)} if previous one
+     * failed with some exception.
+     *
+     * @param raftGroupServiceSupplier Raft groups service.
+     * @return Function which performs {@link RaftGroupService#changePeersAsync(java.util.List, long)}.
+     */
+    public BiFunction<List<Peer>, Long, CompletableFuture<Void>> changePeersAsync(Supplier<RaftGroupService> raftGroupServiceSupplier) {

Review Comment:
   made package-private, it's needed to make it possible to call it from `org.apache.ignite.internal.table.distributed.TableManagerTest`



-- 
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-unsubscribe@ignite.apache.org

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