HDFS-15873. Add namenode address in logs for block report (#2743)
(cherry picked from commit 6a922f9896
)
This commit is contained in:
parent
3f9c9ccf46
commit
2f56e2b54d
@ -436,7 +436,8 @@ List<DatanodeCommand> blockReport(long fullBrLeaseId) throws IOException {
|
|||||||
final int nCmds = cmds.size();
|
final int nCmds = cmds.size();
|
||||||
LOG.info((success ? "S" : "Uns") +
|
LOG.info((success ? "S" : "Uns") +
|
||||||
"uccessfully sent block report 0x" +
|
"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 + "." +
|
" storage report(s), of which we sent " + numReportsSent + "." +
|
||||||
" The reports had " + totalBlockCount +
|
" The reports had " + totalBlockCount +
|
||||||
" total blocks and used " + numRPCs +
|
" total blocks and used " + numRPCs +
|
||||||
@ -930,10 +931,12 @@ void reRegister() throws IOException {
|
|||||||
|
|
||||||
void triggerBlockReport(BlockReportOptions options) {
|
void triggerBlockReport(BlockReportOptions options) {
|
||||||
if (options.isIncremental()) {
|
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);
|
ibrManager.triggerIBR(true);
|
||||||
} else {
|
} else {
|
||||||
LOG.info(bpos.toString() + ": scheduling a full block report.");
|
LOG.info(bpos.toString() + ": scheduling a full block report " +
|
||||||
|
"to namenode: " + nnAddr + ".");
|
||||||
synchronized(ibrManager) {
|
synchronized(ibrManager) {
|
||||||
scheduler.forceFullBlockReportNow();
|
scheduler.forceFullBlockReportNow();
|
||||||
ibrManager.notifyAll();
|
ibrManager.notifyAll();
|
||||||
|
Loading…
Reference in New Issue
Block a user