From b7268cafac475cf17bc0231c6b8b334a57a76d53 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Mon, 18 Dec 2017 16:02:54 -0800 Subject: [PATCH] HBASE-19122 Suspect methods on Cell to be deprecated; ADDENDUM to fix compile error --- .../main/java/org/apache/hadoop/hbase/MetaTableAccessor.java | 2 +- .../main/java/org/apache/hadoop/hbase/filter/KeyOnlyFilter.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java index 96899d011ba..e184f7ca028 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java @@ -1592,7 +1592,7 @@ public class MetaTableAccessor { .setFamily(HConstants.CATALOG_FAMILY) .setQualifier(getRegionStateColumn()) .setTimestamp(put.getTimeStamp()) - .setType(CellBuilder.DataType.Put) + .setType(DataType.Put) .setValue(Bytes.toBytes(state.name())) .build()); } diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/KeyOnlyFilter.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/KeyOnlyFilter.java index 644d1e8bd2f..32286b65344 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/KeyOnlyFilter.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/KeyOnlyFilter.java @@ -199,6 +199,7 @@ public class KeyOnlyFilter extends FilterBase { return cell.getType(); } + @Override public long getSequenceId() { return 0;