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

Why we don't add a harder lease expiration limit.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 2.6.5
    • Fix Version/s: None
    • Component/s: namenode
    • Labels:
      None
    • Target Version/s:

      Description

      Currently there exists a soft expire timeout(1 minutes by default) and hard expire timeout(60 minutes by default). 

      On our production environment. Some client began writing a file long time(more than one year) ago, when writing finished and tried to close the output stream, the client failed closing it (for some IOException. etc. ).  But the client process is a background service, it doesn't exit. So the lease doesn't released for more than one year.

      The problem is that, the lease for the file is occupied, we have to call recover lease on the file when doing demission or appending operation.

       

      So I am wondering why we don't add a more harder lease expire timeout, when a lease lasts too long (maybe one month),  revoke it. 

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              igloo1986 Igloo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: