ivanzlenko commented on code in PR #6478: URL: https://github.com/apache/ignite-3/pull/6478#discussion_r2300529941
########## 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: Why not change it to something like: Initialization of node "node name" failed: errorResponse ########## 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: We definitely should have a node name in the logs. That way it will be way easier to understand where the error occurred. It will be less so on production environment I guess, but in testing environment, and especially on TC it could be crucial. -- 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