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] [Resolved] (ACCUMULO-4401) Instance name prompt in Initialize infinite loops
Date Sun, 14 Aug 2016 01:46:20 GMT

     [ 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)

Mime
View raw message