You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Eric Newton (JIRA)" <ji...@apache.org> on 2014/02/20 16:12:21 UTC
[jira] [Resolved] (ACCUMULO-2371) cachedDataIndex.close() should be
enclosed in finally block in BCFile#Reader()
[ https://issues.apache.org/jira/browse/ACCUMULO-2371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Newton resolved ACCUMULO-2371.
-----------------------------------
Resolution: Fixed
> 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)