Cyrill commented on code in PR #6408: URL: https://github.com/apache/ignite-3/pull/6408#discussion_r2285071921
########## modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/raft/CmgRaftService.java: ########## @@ -281,6 +281,21 @@ private ClusterNodeMessage nodeMessage(ClusterNode node) { .build(); } + /** + * Returns a known set of consistent IDs of the learners nodes of the CMG. + */ + public CompletableFuture<Set<String>> learners() { + List<Peer> currentLearners = raftService.learners(); + + if (currentLearners == null) { + return raftService.refreshMembers(true).thenCompose(v -> learners()); + } + + return completedFuture(currentLearners.stream() + .map(Peer::consistentId) + .collect(toCollection(HashSet::new))); Review Comment: fixed -- 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