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:
parent
4970f6f3dd
commit
1951d272a2
|
@ -632,7 +632,8 @@ public final class Canary implements Tool {
|
||||||
scan.setCaching(1);
|
scan.setCaching(1);
|
||||||
scan.setMaxResultSize(1L);
|
scan.setMaxResultSize(1L);
|
||||||
stopWatch.start();
|
stopWatch.start();
|
||||||
table.getScanner(scan);
|
ResultScanner s = table.getScanner(scan);
|
||||||
|
s.close();
|
||||||
stopWatch.stop();
|
stopWatch.stop();
|
||||||
}
|
}
|
||||||
this.getSink().publishReadTiming(tableName, serverName, stopWatch.getTime());
|
this.getSink().publishReadTiming(tableName, serverName, stopWatch.getTime());
|
||||||
|
|
Loading…
Reference in New Issue