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 1160315e2f
commit d4cbff58cc
1 changed files with 2 additions and 1 deletions

View File

@ -181,7 +181,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);