accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject git commit: ACCUMULO-2371 add finally clause
Date Thu, 20 Feb 2014 15:10:39 GMT
Repository: accumulo
Updated Branches:
  refs/heads/1.6.0-SNAPSHOT decce44cc -> 822090526


ACCUMULO-2371 add finally clause


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/82209052
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/82209052
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/82209052

Branch: refs/heads/1.6.0-SNAPSHOT
Commit: 8220905264ca8856aa383bbbc438bbabb67c0c5b
Parents: decce44
Author: Eric Newton <eric.newton@gmail.com>
Authored: Thu Feb 20 10:10:36 2014 -0500
Committer: Eric Newton <eric.newton@gmail.com>
Committed: Thu Feb 20 10:10:36 2014 -0500

----------------------------------------------------------------------
 .../java/org/apache/accumulo/core/file/rfile/bcfile/BCFile.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/82209052/core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/BCFile.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/BCFile.java b/core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/BCFile.java
index 6083a62..e8f45cc 100644
--- a/core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/BCFile.java
+++ b/core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/BCFile.java
@@ -936,8 +936,9 @@ public final class BCFile {
         } catch (IOException e) {
           LOG.error("Got IOException when trying to create DataIndex block");
           throw e;
+        } finally {
+          cachedDataIndex.close();
         }
-        cachedDataIndex.close();
 
       } else {
         // We have cached versions of the metaIndex, dataIndex and cryptoParams objects.


Mime
View raw message