You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by el...@apache.org on 2015/05/29 03:28:50 UTC
[02/11] accumulo git commit: ACCUMULO-3868 Ensure FileInputStream is
closed
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/1.7
Commit: 7432c5c4251bff72ed1bf5d6ff6589b6e39ae6c7
Parents: 447d38b
Author: Josh Elser <el...@apache.org>
Authored: Thu May 28 20:02:39 2015 -0400
Committer: Josh Elser <el...@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);
}