浏览代码

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

(cherry picked from commit 52d7b745c6d95e799542d6409dac30d0418ce8a8)
Inigo Goiri 5 年之前
父节点
当前提交
27555620fa

+ 3 - 0
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);
       }
     }
   }