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).

        Issue Links

          Activity

          Hide
          szetszwo Tsz Wo Nicholas Sze added a comment -

          Let's fix this in HDFS-2589.

          Show
          szetszwo Tsz Wo Nicholas Sze added a comment - Let's fix this in HDFS-2589 .

            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:

                Development