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

This commit is contained in:
anoopsjohn 2015-08-05 10:08:24 +05:30
parent 5f6632f801
commit 18c9bb8b54
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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