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 (Resolved) (JIRA)" <ji...@apache.org> on 2011/11/29 00:19:40 UTC
[jira] [Resolved] (HDFS-1389) HftpFileSystem should not start a
RenewerThread in the static initializer
[ https://issues.apache.org/jira/browse/HDFS-1389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo (Nicholas), SZE resolved HDFS-1389.
------------------------------------------
Resolution: Duplicate
Let's fix this in HDFS-2589.
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira