You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by hu...@apache.org on 2022/08/12 19:17:25 UTC

[hbase] branch master updated: HBASE-27296 Some Cell's implementation of toString() such as IndividualBytesFieldCell prints out value and tags which is too verbose (#4695)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 73759be3960 HBASE-27296 Some Cell's implementation of toString() such as IndividualBytesFieldCell prints out value and tags which is too verbose (#4695)
73759be3960 is described below

commit 73759be396036014a92e7d174dfb34c2d2a91a7f
Author: huaxiangsun <hu...@apache.org>
AuthorDate: Fri Aug 12 12:17:14 2022 -0700

    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 <nd...@apache.org>
---
 .../src/main/java/org/apache/hadoop/hbase/ByteBufferKeyValue.java       | 2 +-
 .../src/main/java/org/apache/hadoop/hbase/IndividualBytesFieldCell.java | 2 +-
 .../src/main/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 21c2468a286..24ae1ac9619 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 class ByteBufferKeyValue extends ByteBufferExtendedCell {
 
   @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 b86b5e9c382..18cd6a8e4f9 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 class IndividualBytesFieldCell implements ExtendedCell, Cloneable {
 
   @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 e72dada5403..a7afa785d9b 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 abstract class HFileReaderImpl implements HFile.Reader, Configurable {
 
     @Override
     public String getKeyString() {
-      return CellUtil.toString(getKey(), true);
+      return CellUtil.toString(getKey(), false);
     }
 
     @Override