You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "valepakh (via GitHub)" <gi...@apache.org> on 2023/05/04 09:03:28 UTC
[GitHub] [ignite-3] valepakh commented on a diff in pull request #1991: IGNITE-19077 Apply custom cluster config on cluster init
valepakh commented on code in PR #1991:
URL: https://github.com/apache/ignite-3/pull/1991#discussion_r1184744095
##########
modules/cli/src/main/java/org/apache/ignite/internal/cli/commands/cluster/init/ClusterInitOptions.java:
##########
@@ -119,8 +117,8 @@ public String clusterConfiguration() {
} else if (clusterConfigOptions.config != null) {
return clusterConfigOptions.config;
} else if (clusterConfigOptions.file != null) {
- try (Stream<String> lines = Files.lines(clusterConfigOptions.file.toPath())) {
- return lines.collect(Collectors.joining(System.lineSeparator()));
+ try {
+ return new String(Files.readAllBytes(clusterConfigOptions.file.toPath()));
Review Comment:
Why not just use Files.readString?
--
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-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org