You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by la...@apache.org on 2019/05/21 00:19:49 UTC

[phoenix] branch master updated: IndexRebuildTaskIT fails with HBase 1.5.x.

This is an automated email from the ASF dual-hosted git repository.

larsh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/master by this push:
     new 27a5368  IndexRebuildTaskIT fails with HBase 1.5.x.
27a5368 is described below

commit 27a53681cbab108e208bd5051200b69dd9d6398a
Author: Lars Hofhansl <la...@apache.org>
AuthorDate: Mon May 20 17:19:32 2019 -0700

    IndexRebuildTaskIT fails with HBase 1.5.x.
---
 .../java/org/apache/phoenix/hbase/index/wal/IndexedKeyValue.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/wal/IndexedKeyValue.java b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/wal/IndexedKeyValue.java
index 025dcc8..2245f26 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/wal/IndexedKeyValue.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/wal/IndexedKeyValue.java
@@ -53,7 +53,10 @@ public class IndexedKeyValue extends KeyValue {
     public IndexedKeyValue() {}
 
     public IndexedKeyValue(byte[] bs, Mutation mutation) {
-        super(mutation.getRow(), 0, mutation.getRow().length);
+        this.bytes = mutation.getRow();
+        this.offset = 0;
+        this.length = mutation.getRow().length;
+
         this.indexTableName = new ImmutableBytesPtr(bs);
         this.mutation = mutation;
         this.hashCode = calcHashCode(indexTableName, mutation);