You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "ZanderXu (Jira)" <ji...@apache.org> on 2022/09/15 03:24:00 UTC

[jira] [Created] (HDFS-16772) refreshHostsReader should use the new configuration

ZanderXu created HDFS-16772:
-------------------------------

             Summary: refreshHostsReader should use the new configuration
                 Key: HDFS-16772
                 URL: https://issues.apache.org/jira/browse/HDFS-16772
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: ZanderXu
            Assignee: ZanderXu


`refreshHostsReader` should use the latest configuration.

And the current code as bellow:
{code:java}
/** 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();
} {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org