HBASE-16977 VerifyReplication should log a printable representation of the row keys

Signed-off-by: Gary Helmling <garyh@apache.org>
This commit is contained in:
Ashu Pachauri 2016-10-31 12:39:10 -07:00 committed by Gary Helmling
parent 3d9520b140
commit 598dd9bb0e
1 changed files with 2 additions and 1 deletions

View File

@ -180,7 +180,8 @@ public class VerifyReplication extends Configured implements Tool {
Result.compareResults(value, currentCompareRowInPeerTable);
context.getCounter(Counters.GOODROWS).increment(1);
if (verbose) {
LOG.info("Good row key: " + delimiter + Bytes.toString(value.getRow()) + delimiter);
LOG.info("Good row key: " + delimiter
+ Bytes.toStringBinary(value.getRow()) + delimiter);
}
} catch (Exception e) {
logFailRowAndIncreaseCounter(context, Counters.CONTENT_DIFFERENT_ROWS, value);