hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Created: (HDFS-1389) HftpFileSystem should not start a RenewerThread in the static initializer
Date Fri, 10 Sep 2010 22:51:33 GMT
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.


Mime
View raw message