adityamukho commented on code in PR #6478:
URL: https://github.com/apache/ignite-3/pull/6478#discussion_r2301244306


##########
modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/ClusterInitializer.java:
##########
@@ -292,7 +293,7 @@ private CompletableFuture<Void> 
invokeMessage(Collection<ClusterNode> nodes, Net
                                 var errorResponse = (InitErrorMessage) 
response;
 
                                 throw new InternalInitException(
-                                        String.format("Got error response from 
node \"%s\": %s", node.name(), errorResponse.cause()),
+                                        
Optional.ofNullable(errorResponse.cause()).orElse(""),

Review Comment:
   1. `InitErrorMessage.cause()` is marked as nullable, but the first parameter 
of the `InternalInitException` constructor isn't. It got flagged during commit 
analysis.
   2. The node name was removed as part of removing the "Got error response..." 
message. This change makes that happen at the CLI, but unfortunately also at 
the server. I don't know if there is a way to selectively print the node name 
in the server log, but not show it at the CLI.
   3. Perhaps, but it would perhaps be better to take it up as a general 
cleanup exercise in a separate ticket?



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