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] [Updated] (ACCUMULO-2176) ExecfileCommand#execute() should close scanner
Date Fri, 10 Jan 2014 22:57:50 GMT

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

Josh Elser updated ACCUMULO-2176:
---------------------------------

    Affects Version/s: 1.4.4
                       1.5.0

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

Mime
View raw message