accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-4401) Instance name prompt in Initialize infinite loops
Date Sun, 14 Aug 2016 00:54:20 GMT
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)

Mime
View raw message