You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2014/01/10 23:51:51 UTC
[jira] [Created] (ACCUMULO-2176) ExecfileCommand#execute() should
close scanner
Ted Yu created ACCUMULO-2176:
--------------------------------
Summary: ExecfileCommand#execute() should close scanner
Key: ACCUMULO-2176
URL: https://issues.apache.org/jira/browse/ACCUMULO-2176
Project: Accumulo
Issue Type: Bug
Reporter: Ted Yu
Priority: Minor
{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)