HftpFileSystem should not start a RenewerThread in the static initializer
-------------------------------------------------------------------------

                 Key: HDFS-1389
                 URL: https://issues.apache.org/jira/browse/HDFS-1389
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Tsz Wo (Nicholas), SZE


{code}
//HftpFileSystem
  private static RenewerThread renewer = new RenewerThread();
  static {
    renewer.start();
  }
{code}
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).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to