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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-alpha4, 2.8.2
    • None
    • None
    • 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

        1. HDFS-11891.001.patch
          0.7 kB
          Chen Liang

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: