From ecd4de938b44b8d1edeadbc2204678828ef18072 Mon Sep 17 00:00:00 2001 From: tedyu Date: Mon, 7 Nov 2016 07:41:55 -0800 Subject: [PATCH] HBASE-17026 VerifyReplication log should distinguish whether good row key is result of revalidation --- .../hbase/mapreduce/replication/VerifyReplication.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplication.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplication.java index e4d266f8e0e..a6ab6d042d4 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplication.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplication.java @@ -210,18 +210,19 @@ public class VerifyReplication extends Configured implements Tool { if (!sourceResult.isEmpty()) { context.getCounter(Counters.GOODROWS).increment(1); if (verbose) { - LOG.info("Good row key: " + delimiter + Bytes.toString(row.getRow()) + delimiter); + LOG.info("Good row key (with recompare): " + delimiter + Bytes.toStringBinary(row.getRow()) + + delimiter); } } return; } catch (Exception e) { LOG.error("recompare fail after sleep, rowkey=" + delimiter + - Bytes.toString(row.getRow()) + delimiter); + Bytes.toStringBinary(row.getRow()) + delimiter); } } context.getCounter(counter).increment(1); context.getCounter(Counters.BADROWS).increment(1); - LOG.error(counter.toString() + ", rowkey=" + delimiter + Bytes.toString(row.getRow()) + + LOG.error(counter.toString() + ", rowkey=" + delimiter + Bytes.toStringBinary(row.getRow()) + delimiter); }