Skip to content

Commit bd6a217

Browse files
committed
HDFS-11891. DU#refresh should print the path of the directory when an exception is caught. Contributed by Chen Liang.
1 parent 2cd612b commit bd6a217

File tree

1 file changed

+2
-1
lines changed
  • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ protected synchronized void refresh() {
5252
try {
5353
duShell.startRefresh();
5454
} catch (IOException ioe) {
55-
LOG.warn("Could not get disk usage information", ioe);
55+
LOG.warn("Could not get disk usage information for path {}",
56+
getDirPath(), ioe);
5657
}
5758
}
5859

0 commit comments

Comments
 (0)