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 2014/01/11 00:25:50 UTC
[jira] [Assigned] (ACCUMULO-2176) ExecfileCommand#execute() should
close scanner
[ https://issues.apache.org/jira/browse/ACCUMULO-2176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Josh Elser reassigned ACCUMULO-2176:
------------------------------------
Assignee: Josh Elser
> ExecfileCommand#execute() should close scanner
> ----------------------------------------------
>
> Key: ACCUMULO-2176
> URL: https://issues.apache.org/jira/browse/ACCUMULO-2176
> Project: Accumulo
> Issue Type: Bug
> Affects Versions: 1.4.4, 1.5.0
> Reporter: Ted Yu
> Assignee: Josh Elser
> Priority: Minor
> Fix For: 1.4.5, 1.5.1, 1.6.0
>
>
> {code}
> Scanner scanner = new Scanner(new File(cl.getArgs()[0]));
> while (scanner.hasNextLine()) {
> shellState.execCommand(scanner.nextLine(), true, cl.hasOption(verboseOption.getOpt()));
> }
> {code}
> scanner should be closed upon return.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)