From 27555620fae3791d9fd24168e346714de8467a1d Mon Sep 17 00:00:00 2001 From: Inigo Goiri Date: Thu, 19 Dec 2019 09:42:17 -0800 Subject: [PATCH] HDFS-15062. Add LOG when sendIBRs failed. Contributed by Fei Hui. (cherry picked from commit 52d7b745c6d95e799542d6409dac30d0418ce8a8) --- .../hdfs/server/datanode/IncrementalBlockReportManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/IncrementalBlockReportManager.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/IncrementalBlockReportManager.java index 1779374f573..0bf75a5d0f5 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/IncrementalBlockReportManager.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/IncrementalBlockReportManager.java @@ -221,6 +221,9 @@ class IncrementalBlockReportManager { // 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); } } }