saintstack commented on a change in pull request #753: HBASE-23181 Blocked WAL
archive: "LogRoller: Failed to schedule flush…
URL: https://github.com/apache/hbase/pull/753#discussion_r338873160
##########
File path:
hbase-common/src/main/java/org/apache/hadoop/hbase/util/ImmutableByteArray.java
##########
@@ -51,4 +51,8 @@ public static ImmutableByteArray wrap(byte[] b) {
public String toStringUtf8() {
return Bytes.toString(b);
}
+
+ public String toStringBinary() {
+ return Bytes.toStringBinary(b);
+ }
Review comment:
Yeah, why not have this just be the toString behavior rather than add a new
method?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services