accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-2176) ExecfileCommand#execute() should close scanner
Date Fri, 10 Jan 2014 23:36:51 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-2176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13868467#comment-13868467
] 

ASF subversion and git services commented on ACCUMULO-2176:
-----------------------------------------------------------

Commit 826dc4880ca1ed916d073dc101fe39d12f5c2fdb in branch refs/heads/master from [~elserj]
[ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=826dc48 ]

ACCUMULO-2176 Ensure scanner is closed.


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

Mime
View raw message