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

HftpFileSystem should not start a RenewerThread in the static initializer

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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

              • Assignee:
                Unassigned
                Reporter:
                szetszwo Tsz Wo Nicholas Sze
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: