HBASE-17026 VerifyReplication log should distinguish whether good row key is result of revalidation
This commit is contained in:
parent
c4132bbf30
commit
ecd4de938b
|
@ -210,18 +210,19 @@ public class VerifyReplication extends Configured implements Tool {
|
||||||
if (!sourceResult.isEmpty()) {
|
if (!sourceResult.isEmpty()) {
|
||||||
context.getCounter(Counters.GOODROWS).increment(1);
|
context.getCounter(Counters.GOODROWS).increment(1);
|
||||||
if (verbose) {
|
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;
|
return;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.error("recompare fail after sleep, rowkey=" + delimiter +
|
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(counter).increment(1);
|
||||||
context.getCounter(Counters.BADROWS).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);
|
delimiter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue