HDFS-15873. Add namenode address in logs for block report (#2743)
(cherry picked from commit6a922f9896
) (cherry picked from commit2f56e2b54d
)
This commit is contained in:
parent
2ba3890b15
commit
6df2dc8463
|
@ -423,7 +423,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 +
|
||||
|
@ -934,10 +935,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();
|
||||
|
|
Loading…
Reference in New Issue