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

HftpFileSystem should not start a RenewerThread in the static initializer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      //HftpFileSystem
        private static RenewerThread renewer = new RenewerThread();
        static {
          renewer.start();
        }
      

      HftpFileSystem creates and starts a RenewerThread in the static initializer. Starting a thread is expensive and the RenewerThread is not required in some cases. One typical example is calling HftpFileSystem.makeQualified(Path path).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: