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 DD4C018624 for ; Sun, 13 Mar 2016 16:35:26 +0000 (UTC) Received: (qmail 43899 invoked by uid 500); 13 Mar 2016 16:35:26 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 43855 invoked by uid 500); 13 Mar 2016 16:35:26 -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 43846 invoked by uid 99); 13 Mar 2016 16:35:26 -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; Sun, 13 Mar 2016 16:35:26 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7B587DFC11; Sun, 13 Mar 2016 16:35:26 +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: <872922b516dc4f2ab54c33c9edbaa7bf@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: hbase git commit: HBASE-15379 Fake cells created in read path not implementing SettableSequenceId. (Amal Joshy) Date: Sun, 13 Mar 2016 16:35:26 +0000 (UTC) Repository: hbase Updated Branches: refs/heads/master b6b9910e2 -> 88ca84f68 HBASE-15379 Fake cells created in read path not implementing SettableSequenceId. (Amal Joshy) Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/88ca84f6 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/88ca84f6 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/88ca84f6 Branch: refs/heads/master Commit: 88ca84f685df1ff78bf184c751ec9607147a7a2e Parents: b6b9910 Author: anoopsjohn Authored: Sun Mar 13 22:05:05 2016 +0530 Committer: anoopsjohn Committed: Sun Mar 13 22:05:05 2016 +0530 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/hbase/CellUtil.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/88ca84f6/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java ---------------------------------------------------------------------- diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java index 85b3913..d9f0679 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java @@ -1653,9 +1653,13 @@ public final class CellUtil { * These cells are used in reseeks/seeks to improve the read performance. * They are not real cells that are returned back to the clients */ - private static abstract class EmptyCell implements Cell { + private static abstract class EmptyCell implements Cell, SettableSequenceId { @Override + public void setSequenceId(long seqId) { + // Fake cells don't need seqId, so leaving it as a noop. + } + @Override public byte[] getRowArray() { return EMPTY_BYTE_ARRAY; }