You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2016/08/14 00:54:20 UTC
[jira] [Created] (ACCUMULO-4401) Instance name prompt in Initialize
infinite loops
Josh Elser created ACCUMULO-4401:
------------------------------------
Summary: Instance name prompt in Initialize infinite loops
Key: ACCUMULO-4401
URL: https://issues.apache.org/jira/browse/ACCUMULO-4401
Project: Accumulo
Issue Type: Bug
Reporter: Josh Elser
Assignee: Josh Elser
Priority: Blocker
Fix For: 1.8.0
The following change in ACCUMULO-4357 causes {{accumulo init}} to prompt the user infinitely for an instance name:
{code}
@@ -575,7 +575,8 @@ public class Initialize implements KeywordExecutable {
if (opts.clearInstanceName) {
exists = false;
break;
- } else if (exists = zoo.exists(instanceNamePath)) {
+ } else if (zoo.exists(instanceNamePath)) {
+ exists = true;
String decision = getConsoleReader().readLine("Instance name \"" + instanceName + "\" exists. Delete existing entry from zookeeper? [Y/N] : ");
if (decision == null)
System.exit(0);
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)