Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-11891

DU#refresh should print the path of the directory when an exception is caught

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-alpha4, 2.8.2
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      the refresh() method DU is as follows,

        @Override
        protected synchronized void refresh() {
          try {
            duShell.startRefresh();
          } catch (IOException ioe) {
            LOG.warn("Could not get disk usage information", ioe);
          }
        }
      

      the log warning message should also be printing out the directory that failed.

        Attachments

          Activity

            People

            • Assignee:
              vagarychen Chen Liang
              Reporter:
              vagarychen Chen Liang
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: