[
https://issues.apache.org/jira/browse/ACCUMULO-2371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13907051#comment-13907051
]
ASF subversion and git services commented on ACCUMULO-2371:
-----------------------------------------------------------
Commit 8220905264ca8856aa383bbbc438bbabb67c0c5b in accumulo's branch
refs/heads/1.6.0-SNAPSHOT from [~ecn]
[ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=8220905 ]
ACCUMULO-2371 add finally clause
> cachedDataIndex.close() should be enclosed in finally block in BCFile#Reader()
> ------------------------------------------------------------------------------
>
> Key: ACCUMULO-2371
> URL: https://issues.apache.org/jira/browse/ACCUMULO-2371
> Project: Accumulo
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Eric Newton
> Priority: Minor
> Fix For: 1.6.0
>
>
> Here is related code:
> {code}
> try {
> dataIndex = new DataIndex(cachedDataIndex);
> } catch (IOException e) {
> LOG.error("Got IOException when trying to create DataIndex block");
> throw e;
> }
> cachedDataIndex.close();
> {code}
> If there is IOE, cachedDataIndex.close() would be skipped.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)