You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2014/01/14 19:16:52 UTC
svn commit: r1558137 -
/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java
Author: tedyu
Date: Tue Jan 14 18:16:52 2014
New Revision: 1558137
URL: http://svn.apache.org/r1558137
Log:
HBASE-10316 Canary#RegionServerMonitor#monitorRegionServers() should close the scanner returned by table.getScanner()
Modified:
hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java
Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java?rev=1558137&r1=1558136&r2=1558137&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java (original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java Tue Jan 14 18:16:52 2014
@@ -632,7 +632,8 @@ public final class Canary implements Too
scan.setCaching(1);
scan.setMaxResultSize(1L);
stopWatch.start();
- table.getScanner(scan);
+ ResultScanner s = table.getScanner(scan);
+ s.close();
stopWatch.stop();
}
this.getSink().publishReadTiming(tableName, serverName, stopWatch.getTime());