From 52d7b745c6d95e799542d6409dac30d0418ce8a8 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. --- .../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 9515b736a2d..73cc44b31f9 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 @@ -222,6 +222,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); } } }