HDFS-15062. Add LOG when sendIBRs failed. Contributed by Fei Hui.

(cherry picked from commit 52d7b745c6d95e799542d6409dac30d0418ce8a8)
This commit is contained in:
Inigo Goiri 2019-12-19 09:42:17 -08:00
parent 109a2f513f
commit 0b75c5238b

View File

@ -221,6 +221,9 @@ void sendIBRs(DatanodeProtocol namenode, DatanodeRegistration registration,
// blocks back onto our queue, but only in the case where we
// didn't put something newer in the meantime.
putMissing(reports);
LOG.warn("Failed to call blockReceivedAndDeleted: {}, nnId: {}"
+ ", duration(ms): {}", Arrays.toString(reports),
nnRpcLatencySuffix, monotonicNow() - startTime);
}
}
}