You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Lin Yiqun (JIRA)" <ji...@apache.org> on 2016/03/10 04:16:40 UTC

[jira] [Updated] (HDFS-9935) Remove LEASE_{SOFTLIMIT,HARDLIMIT}_PERIOD constants from HdfsServerConstants

     [ https://issues.apache.org/jira/browse/HDFS-9935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lin Yiqun updated HDFS-9935:
----------------------------
    Description: In HDFS-9134, it has moved the {{LEASE_SOFTLIMIT_PERIOD}},{{LEASE_HARDLIMIT_PERIOD}} constants from {{HdfsServerConstants}} to {{HdfsConstants}} because these two constants are used by {{DFSClient}} which is moved to {{hadoop-hdfs-client}}. And constants in {{HdfsConstants}} can be both used by client and server side. In addition, I have checked that these two constants in {{HdfsServerConstants}} has already not been used in project now and were all replaced by {{HdfsConstants.LEASE_SOFTLIMIT_PERIOD}},{{HdfsConstants.LEASE_HARDLIMIT_PERIOD}}. So I think we can remove these unused constant values in {{HdfsServerConstants}} completely. Instead of we can use them in {{HdfsConstants}} if we want to use them in the future.  (was: In HDFS-9134, it has moved the LEASE_{SOFTLIMIT,HARDLIMIT}_PERIOD constants from {{HdfsServerConstants}} to {{HdfsConstants}} because these two constants are used by {{DFSClient}} which is moved to {{hadoop-hdfs-client}}. And constants in {{HdfsConstants}} can be both used by client and server side. In addition, I have checked that these two constants in {{HdfsServerConstants}} has already not been used in project now and were all replaced by {{HdfsConstants.LEASE_{SOFTLIMIT,HARDLIMIT}_PERIOD}}. So I think we can remove these unused constant values in {{HdfsServerConstants}} completely. Instead of we can use them in {{HdfsConstants}} if we want to use them in the future.)

> Remove LEASE_{SOFTLIMIT,HARDLIMIT}_PERIOD constants from HdfsServerConstants
> ----------------------------------------------------------------------------
>
>                 Key: HDFS-9935
>                 URL: https://issues.apache.org/jira/browse/HDFS-9935
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Lin Yiqun
>            Assignee: Lin Yiqun
>            Priority: Minor
>
> In HDFS-9134, it has moved the {{LEASE_SOFTLIMIT_PERIOD}},{{LEASE_HARDLIMIT_PERIOD}} constants from {{HdfsServerConstants}} to {{HdfsConstants}} because these two constants are used by {{DFSClient}} which is moved to {{hadoop-hdfs-client}}. And constants in {{HdfsConstants}} can be both used by client and server side. In addition, I have checked that these two constants in {{HdfsServerConstants}} has already not been used in project now and were all replaced by {{HdfsConstants.LEASE_SOFTLIMIT_PERIOD}},{{HdfsConstants.LEASE_HARDLIMIT_PERIOD}}. So I think we can remove these unused constant values in {{HdfsServerConstants}} completely. Instead of we can use them in {{HdfsConstants}} if we want to use them in the future.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)