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

Decrease lease hard limit

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.3.0, 2.8.6, 2.9.3, 3.1.4, 3.2.2, 2.10.1
    • None
    • None
    • Reviewed

    Description

      The hard limit is currently hard-coded to be 1 hour. This also determines the NN automatic lease recovery interval. Something like 20 min will make more sense.

      After the 5 min soft limit, other clients can recover the lease. If no one else takes the lease away, the original client still can renew the lease within the hard limit. So even after a NN full GC of 8 minutes, leases can be still valid.

      However, there is one risk in reducing the hard limit. E.g. Reduced to 20 min. If the NN crashes and the manual failover takes more than 20 minutes, clients will abort.

      Attachments

        1. HDFS-14758.006.patch
          13 kB
          Hemanth Boyina
        2. HDFS-14758.005.patch
          13 kB
          Hemanth Boyina
        3. HDFS-14758.005.patch
          13 kB
          Kihwal Lee
        4. HDFS-14758.004.patch
          13 kB
          Hemanth Boyina
        5. HDFS-14758.003.patch
          13 kB
          Hemanth Boyina
        6. HDFS-14758.002.patch
          12 kB
          Hemanth Boyina
        7. HDFS-14758.001.patch
          12 kB
          Hemanth Boyina

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hemanthboyina Hemanth Boyina
            epayne Eric Payne
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment