From c9217ba1b54759d12ebe6c348d8ec27c8a5355ba Mon Sep 17 00:00:00 2001 From: Lars George Date: Thu, 28 May 2015 10:11:25 +0200 Subject: [PATCH] HBASE-13723 In table.rb scanners are never closed. --- hbase-shell/src/main/ruby/hbase/table.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-shell/src/main/ruby/hbase/table.rb b/hbase-shell/src/main/ruby/hbase/table.rb index 4293aceed2c..0946eb2eb60 100644 --- a/hbase-shell/src/main/ruby/hbase/table.rb +++ b/hbase-shell/src/main/ruby/hbase/table.rb @@ -271,6 +271,7 @@ EOF org.apache.hadoop.hbase.util.Bytes::toStringBinary(row.getRow)) end + scanner.close() # Return the counter return count end @@ -525,8 +526,8 @@ EOF break end end - scanner.close() + scanner.close() return ((block_given?) ? count : res) end