Flaugh24 commented on code in PR #2817:
URL: https://github.com/apache/ignite-3/pull/2817#discussion_r1388329113
##########
modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/ClusterManagementGroupManager.java:
##########
@@ -356,6 +355,10 @@ private ClusterState createClusterState(CmgInitMessage
msg) {
private void onElectedAsLeader(long term) {
LOG.info("CMG leader has been elected, executing onLeaderElected
callback");
+ raftServiceAfterJoin()
+ .thenCompose(CmgRaftService::readClusterState)
+ .thenAccept(state ->
initialClusterConfigurationFuture.complete(state.initialClusterConfiguration()));
Review Comment:
Right. We have to complete the future in `onElectedAsLeader` due to the fact
that the leader doesn't send a cluster state to itself.
--
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]