Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9935

Remove LEASE_{SOFTLIMIT,HARDLIMIT}_PERIOD and unused import from HdfsServerConstants

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-alpha2
    • Component/s: None
    • Labels:
      None

      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.

        Attachments

        1. HDFS-9935.002.patch
          1 kB
          Yiqun Lin
        2. HDFS-9935.001.patch
          1.0 kB
          Yiqun Lin

          Issue Links

            Activity

              People

              • Assignee:
                linyiqun Yiqun Lin
                Reporter:
                linyiqun Yiqun Lin
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: