HDFS-15873. Add namenode address in logs for block report (#2743)

This commit is contained in:
litao 2021-03-09 00:50:51 +08:00 committed by GitHub
parent 04cd3115ba
commit 6a922f9896
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -436,7 +436,8 @@ class BPServiceActor implements Runnable {
final int nCmds = cmds.size();
LOG.info((success ? "S" : "Uns") +
"uccessfully sent block report 0x" +
Long.toHexString(reportId) + ", containing " + reports.length +
Long.toHexString(reportId) + " to namenode: " + nnAddr +
", containing " + reports.length +
" storage report(s), of which we sent " + numReportsSent + "." +
" The reports had " + totalBlockCount +
" total blocks and used " + numRPCs +
@ -930,10 +931,12 @@ class BPServiceActor implements Runnable {
void triggerBlockReport(BlockReportOptions options) {
if (options.isIncremental()) {
LOG.info(bpos.toString() + ": scheduling an incremental block report.");
LOG.info(bpos.toString() + ": scheduling an incremental block report " +
"to namenode: " + nnAddr + ".");
ibrManager.triggerIBR(true);
} else {
LOG.info(bpos.toString() + ": scheduling a full block report.");
LOG.info(bpos.toString() + ": scheduling a full block report " +
"to namenode: " + nnAddr + ".");
synchronized(ibrManager) {
scheduler.forceFullBlockReportNow();
ibrManager.notifyAll();