From 1951d272a2b5d7e1aed987765c3d9d6a8d1e785b Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Tue, 14 Jan 2014 18:16:52 +0000 Subject: [PATCH] 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 --- .../src/main/java/org/apache/hadoop/hbase/tool/Canary.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java index 72a88764eb7..5a90346a16b 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java @@ -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());