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

refreshHostsReader should use the new configuration

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersStop watchingWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            xuzq_zander ZanderXu Assign to me
            xuzq_zander ZanderXu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment