HBASE-10316 Canary#RegionServerMonitor#monitorRegionServers() should close the scanner returned by table.getScanner()

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1558137 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2014-01-14 18:16:52 +00:00
parent 4970f6f3dd
commit 1951d272a2
1 changed files with 2 additions and 1 deletions

View File

@ -632,7 +632,8 @@ public final class Canary implements Tool {
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());