You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2021/01/06 16:11:29 UTC
[GitHub] [accumulo] DomGarguilo commented on a change in pull request #1824: Upgrade to jline3
DomGarguilo commented on a change in pull request #1824:
URL: https://github.com/apache/accumulo/pull/1824#discussion_r552755071
##########
File path: server/base/src/main/java/org/apache/accumulo/server/init/Initialize.java
##########
@@ -271,19 +273,23 @@ static boolean checkInit(VolumeManager fs, SiteConfiguration sconf, Configuratio
return false;
}
if (sconf.get(Property.INSTANCE_SECRET).equals(Property.INSTANCE_SECRET.getDefaultValue())) {
- ConsoleReader c = getConsoleReader();
- c.beep();
- c.println();
- c.println();
- c.println("Warning!!! Your instance secret is still set to the default,"
- + " this is not secure. We highly recommend you change it.");
- c.println();
- c.println();
- c.println("You can change the instance secret in accumulo by using:");
- c.println(" bin/accumulo " + org.apache.accumulo.server.util.ChangeSecret.class.getName());
- c.println("You will also need to edit your secret in your configuration"
- + " file by adding the property instance.secret to your"
- + " accumulo.properties. Without this accumulo will not operate" + " correctly");
+ LineReader c = getLineReader();
+ c.getTerminal().puts(InfoCmp.Capability.bell);
+ c.getTerminal().writer().println();
Review comment:
Does anyone know why the print statements are like this as opposed to one/fewer prints with linebreaks (`\n`). It seems as though there might be a reason `println`s are used in this way, but it seems like it would be cleaner to consolidate this text into less prints if possible. I see that it was this way before this PR so its not quite related but I was just curious.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org