From 73759be396036014a92e7d174dfb34c2d2a91a7f Mon Sep 17 00:00:00 2001 From: huaxiangsun Date: Fri, 12 Aug 2022 12:17:14 -0700 Subject: [PATCH] HBASE-27296 Some Cell's implementation of toString() such as IndividualBytesFieldCell prints out value and tags which is too verbose (#4695) Signed-off-by: Nick Dimiduk --- .../main/java/org/apache/hadoop/hbase/ByteBufferKeyValue.java | 2 +- .../java/org/apache/hadoop/hbase/IndividualBytesFieldCell.java | 2 +- .../java/org/apache/hadoop/hbase/io/hfile/HFileReaderImpl.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/ByteBufferKeyValue.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/ByteBufferKeyValue.java index 21c2468a2866..24ae1ac9619f 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/ByteBufferKeyValue.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/ByteBufferKeyValue.java @@ -294,7 +294,7 @@ public void write(ByteBuffer buf, int offset) { @Override public String toString() { - return CellUtil.toString(this, true); + return CellUtil.toString(this, false); } @Override diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/IndividualBytesFieldCell.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/IndividualBytesFieldCell.java index b86b5e9c3826..18cd6a8e4f98 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/IndividualBytesFieldCell.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/IndividualBytesFieldCell.java @@ -288,6 +288,6 @@ public void setTimestamp(byte[] ts) { @Override public String toString() { - return CellUtil.toString(this, true); + return CellUtil.toString(this, false); } } diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileReaderImpl.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileReaderImpl.java index e72dada5403b..a7afa785d9b2 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileReaderImpl.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileReaderImpl.java @@ -1510,7 +1510,7 @@ public Cell getCell() { @Override public String getKeyString() { - return CellUtil.toString(getKey(), true); + return CellUtil.toString(getKey(), false); } @Override