denis-chudov commented on code in PR #6459:
URL: https://github.com/apache/ignite-3/pull/6459#discussion_r2293526116


##########
modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/ClusterInitializer.java:
##########
@@ -206,34 +206,38 @@ public CompletableFuture<Void> initCluster(
 
             // Handler of prepareInitMessage validates that all CMG nodes have 
the same enabledColocation mode.
             return invokeMessage(cmgNodes, prepareInitMessage)
-                    .thenCompose(ignored -> invokeMessage(cmgNodes, 
initMessage)
-                            .handle((v, e) -> {
-                                if (e == null) {
-                                    LOG.info(
-                                            "Cluster initialized 
[clusterName={}, cmgNodes={}, msNodes={}]",
-                                            initMessage.clusterName(),
-                                            initMessage.cmgNodes(),
-                                            initMessage.metaStorageNodes()
-                                    );
-
-                                    return 
CompletableFutures.<Void>nullCompletedFuture();
-                                } else {
-                                    if (e instanceof CompletionException) {
-                                        e = e.getCause();
-                                    }
+                    .thenCompose(ignored -> {
+                        LOG.info("CMG initialization preparation completed.");

Review Comment:
   added initMessage



-- 
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