From 6747033285b4fa1df2d5a16d29909ebfd23994ac Mon Sep 17 00:00:00 2001 From: huaxiangsun Date: Mon, 15 Aug 2022 09:17:10 -0700 Subject: [PATCH] HBASE-27296 Some Cell's implementation of toString() such as IndividualBytesFieldCell prints out value and tags which is too verbose (#4695) (#4703) Signed-off-by: Nick Dimiduk (cherry picked from commit a925b333c25a8e9ad9abdfd6f48aa99586b14852) Change-Id: I581f81cf8dc4978a16b5d92270662b4a0a3807a4 --- .../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 6c1c510ccb89..9c668c1cc3f9 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 77d35db3ffbf..8601232b09d5 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 @@ -293,6 +293,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 0d212253d736..7b00f61d476d 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 @@ -1509,7 +1509,7 @@ public Cell getCell() { @Override public String getKeyString() { - return CellUtil.toString(getKey(), true); + return CellUtil.toString(getKey(), false); } @Override