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 01:46:20 UTC

[jira] [Resolved] (ACCUMULO-4401) Instance name prompt in Initialize infinite loops

     [ https://issues.apache.org/jira/browse/ACCUMULO-4401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Elser resolved ACCUMULO-4401.
----------------------------------
    Resolution: Fixed

> 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
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)