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

refreshHostsReader should use the new configuration

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      `refreshHostsReader` should use the latest configuration.

      And the current code as bellow:

      /** Reread include/exclude files. */
      private void refreshHostsReader(Configuration conf) throws IOException {
        if (conf == null) {
          conf = new HdfsConfiguration();
          // BUG here
          this.hostConfigManager.setConf(conf);
        }
        this.hostConfigManager.refresh();
      } 

      Attachments

        Issue Links

          Activity

            People

              xuzq_zander ZanderXu
              xuzq_zander ZanderXu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: