accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject [08/11] git commit: ACCUMULO-2037 WARNING cleanup
Date Tue, 22 Jul 2014 21:26:51 GMT
ACCUMULO-2037 WARNING cleanup

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

Branch: refs/heads/master
Commit: bab90f89ce398dfcfa3ecb22584041d9a3d3384c
Parents: b149ec4
Author: Eric C. Newton <eric.newton@gmail.com>
Authored: Tue Jul 22 17:12:00 2014 -0400
Committer: Eric C. Newton <eric.newton@gmail.com>
Committed: Tue Jul 22 17:12:00 2014 -0400

----------------------------------------------------------------------
 .../apache/accumulo/test/functional/MasterAssignmentIT.java    | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/bab90f89/test/src/test/java/org/apache/accumulo/test/functional/MasterAssignmentIT.java
----------------------------------------------------------------------
diff --git a/test/src/test/java/org/apache/accumulo/test/functional/MasterAssignmentIT.java
b/test/src/test/java/org/apache/accumulo/test/functional/MasterAssignmentIT.java
index 298466d..02904e0 100644
--- a/test/src/test/java/org/apache/accumulo/test/functional/MasterAssignmentIT.java
+++ b/test/src/test/java/org/apache/accumulo/test/functional/MasterAssignmentIT.java
@@ -88,6 +88,10 @@ public class MasterAssignmentIT extends SimpleMacIT {
   private TabletLocationState getTabletLocationState(Connector c, String tableId) {
     Credentials creds = new Credentials("root", new PasswordToken(ROOT_PASSWORD));
     MetaDataTableScanner s = new MetaDataTableScanner(c.getInstance(), creds, new Range(KeyExtent.getMetadataEntry(new
Text(tableId), null)));
-    return s.next();
+    try {
+      return s.next();
+    } finally {
+      s.close();
+    }
   }
 }


Mime
View raw message