hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject hbase git commit: HBASE-13723 In table.rb scanners are never closed.
Date Thu, 28 May 2015 20:17:54 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.0 376380ead -> f2f0b086a


HBASE-13723 In table.rb scanners are never closed.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/f2f0b086
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/f2f0b086
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/f2f0b086

Branch: refs/heads/branch-1.0
Commit: f2f0b086a83de260c7015946129df8aa306c1180
Parents: 376380e
Author: Lars George <larsgeorge@apache.org>
Authored: Thu May 28 10:11:25 2015 +0200
Committer: Enis Soztutar <enis@apache.org>
Committed: Thu May 28 13:15:25 2015 -0700

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/hbase/table.rb | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/f2f0b086/hbase-shell/src/main/ruby/hbase/table.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/hbase/table.rb b/hbase-shell/src/main/ruby/hbase/table.rb
index f6a70de..e895302 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
@@ -516,6 +517,7 @@ EOF
         end
       end
 
+      scanner.close()
       return ((block_given?) ? count : res)
     end
 


Mime
View raw message