Return-Path: X-Original-To: apmail-hbase-commits-archive@www.apache.org Delivered-To: apmail-hbase-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DFBB418988 for ; Wed, 5 Aug 2015 04:38:46 +0000 (UTC) Received: (qmail 38802 invoked by uid 500); 5 Aug 2015 04:38:46 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 38763 invoked by uid 500); 5 Aug 2015 04:38:46 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 38754 invoked by uid 99); 5 Aug 2015 04:38:46 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2015 04:38:46 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 834E5E042D; Wed, 5 Aug 2015 04:38:46 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: anoopsamjohn@apache.org To: commits@hbase.apache.org Message-Id: <804ce43207194d5fb30e5001931b738a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: hbase git commit: HBASE-14183 Scanning hbase meta table is failing in master branch.(Ashish) Date: Wed, 5 Aug 2015 04:38:46 +0000 (UTC) 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 Authored: Wed Aug 5 10:08:24 2015 +0530 Committer: anoopsjohn 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