hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anoopsamj...@apache.org
Subject hbase git commit: HBASE-14183 Scanning hbase meta table is failing in master branch.(Ashish)
Date Wed, 05 Aug 2015 04:38:46 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 5f6632f80 -> 18c9bb8b5


HBASE-14183 Scanning hbase meta table is failing in master branch.(Ashish)


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

Branch: refs/heads/master
Commit: 18c9bb8b54a5bb101f793e555272cbc74b8288cb
Parents: 5f6632f
Author: anoopsjohn <anoopsamjohn@gmail.com>
Authored: Wed Aug 5 10:08:24 2015 +0530
Committer: anoopsjohn <anoopsamjohn@gmail.com>
Committed: Wed Aug 5 10:08:24 2015 +0530

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/hbase/table.rb      | 2 +-
 hbase-shell/src/test/ruby/hbase/table_test.rb | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/18c9bb8b/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 15bebcd..9f8b673 100644
--- a/hbase-shell/src/main/ruby/hbase/table.rb
+++ b/hbase-shell/src/main/ruby/hbase/table.rb
@@ -651,7 +651,7 @@ EOF
           return "timestamp=%d, value=%s" % [kv.getTimestamp, hri.toString]
         end
         if column == 'info:serverstartcode'
-          if kv.getValue.length > 0
+          if kv.getValueLength > 0
             str_val = org.apache.hadoop.hbase.util.Bytes.toLong(kv.getValueArray, 
               kv.getValueOffset, kv.getValueLength)
           else

http://git-wip-us.apache.org/repos/asf/hbase/blob/18c9bb8b/hbase-shell/src/test/ruby/hbase/table_test.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/test/ruby/hbase/table_test.rb b/hbase-shell/src/test/ruby/hbase/table_test.rb
index 184e0d4..70ed04b 100644
--- a/hbase-shell/src/test/ruby/hbase/table_test.rb
+++ b/hbase-shell/src/test/ruby/hbase/table_test.rb
@@ -598,6 +598,11 @@ module Hbase
       end
     end
 
+    define_test "scan hbase meta table" do
+      res = table("hbase:meta")._scan_internal
+      assert_not_nil(res)
+    end
+
     define_test "mutation with TTL should expire" do
       @test_table.put('ttlTest', 'x:a', 'foo', { TTL => 1000 } )
       begin


Mime
View raw message