فهرست منبع

HDFS-11891. DU#refresh should print the path of the directory when an exception is caught. Contributed by Chen Liang.

Arpit Agarwal 8 سال پیش
والد
کامیت
76c15121d8
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/DU.java

+ 2 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/DU.java

@@ -52,7 +52,8 @@ public class DU extends CachingGetSpaceUsed {
     try {
       duShell.startRefresh();
     } catch (IOException ioe) {
-      LOG.warn("Could not get disk usage information", ioe);
+      LOG.warn("Could not get disk usage information for path {}",
+          getDirPath(), ioe);
     }
   }