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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]