From 88ca84f685df1ff78bf184c751ec9607147a7a2e Mon Sep 17 00:00:00 2001 From: anoopsjohn Date: Sun, 13 Mar 2016 22:05:05 +0530 Subject: [PATCH] HBASE-15379 Fake cells created in read path not implementing SettableSequenceId. (Amal Joshy) --- .../src/main/java/org/apache/hadoop/hbase/CellUtil.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 85b3913a484..d9f06791771 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,8 +1653,12 @@ 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;