HBASE-16609 Fake cells EmptyByteBufferedCell  created in read path not 
implementing SettableSequenceId (Yu Sun)


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

Branch: refs/heads/hbase-12439
Commit: 8290b2c8fa7c534e02e37b0762ebf455a77016ca
Parents: 0860bdb
Author: tedyu <yuzhih...@gmail.com>
Authored: Mon Sep 12 08:53:22 2016 -0700
Committer: tedyu <yuzhih...@gmail.com>
Committed: Mon Sep 12 08:53:22 2016 -0700

----------------------------------------------------------------------
 .../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/8290b2c8/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 ad13e9e..94c7189 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
@@ -1974,7 +1974,11 @@ 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 EmptyByteBufferedCell extends ByteBufferedCell 
{
+  private static abstract class EmptyByteBufferedCell extends ByteBufferedCell 
implements SettableSequenceId {
+    @Override
+    public void setSequenceId(long seqId) {
+      // Fake cells don't need seqId, so leaving it as a noop.
+    }
 
     @Override
     public byte[] getRowArray() {

Reply via email to