accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [05/11] accumulo git commit: ACCUMULO-3868 Ensure FileInputStream is closed
Date Fri, 29 May 2015 01:28:53 GMT
ACCUMULO-3868 Ensure FileInputStream is closed


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

Branch: refs/heads/master
Commit: 7432c5c4251bff72ed1bf5d6ff6589b6e39ae6c7
Parents: 447d38b
Author: Josh Elser <elserj@apache.org>
Authored: Thu May 28 20:02:39 2015 -0400
Committer: Josh Elser <elserj@apache.org>
Committed: Thu May 28 21:14:19 2015 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/accumulo/test/scalability/Run.java    | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/7432c5c4/test/src/main/java/org/apache/accumulo/test/scalability/Run.java
----------------------------------------------------------------------
diff --git a/test/src/main/java/org/apache/accumulo/test/scalability/Run.java b/test/src/main/java/org/apache/accumulo/test/scalability/Run.java
index 744dc42..ab16574 100644
--- a/test/src/main/java/org/apache/accumulo/test/scalability/Run.java
+++ b/test/src/main/java/org/apache/accumulo/test/scalability/Run.java
@@ -68,7 +68,11 @@ public class Run {
         fis.close();
       }
       fis = new FileInputStream(testPath);
-      testProps.load(fis);
+      try {
+        testProps.load(fis);
+      } finally {
+        fis.close();
+      }
     } catch (Exception e) {
       log.error("Error loading config file.", e);
     }


Mime
View raw message