You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org> on 2010/09/11 00:51:33 UTC

[jira] Created: (HDFS-1389) HftpFileSystem should not start a RenewerThread in the static initializer

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.