You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ec...@apache.org on 2014/07/22 23:26:51 UTC
[08/11] git commit: ACCUMULO-2037 WARNING cleanup
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 <er...@gmail.com>
Authored: Tue Jul 22 17:12:00 2014 -0400
Committer: Eric C. Newton <er...@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();
+ }
}
}