hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From larsgeo...@apache.org
Subject hbase git commit: HBASE-13723 In table.rb scanners are never closed.
Date Thu, 28 May 2015 08:15:22 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 0dc1a65f2 -> c9217ba1b


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/c9217ba1
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c9217ba1
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c9217ba1

Branch: refs/heads/branch-1
Commit: c9217ba1b54759d12ebe6c348d8ec27c8a5355ba
Parents: 0dc1a65
Author: Lars George <larsgeorge@apache.org>
Authored: Thu May 28 10:11:25 2015 +0200
Committer: Lars George <larsgeorge@apache.org>
Committed: Thu May 28 10:15:02 2015 +0200

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/c9217ba1/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 4293ace..0946eb2 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
 


Mime
View raw message