[
https://issues.apache.org/jira/browse/HDFS-14758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17034789#comment-17034789
]
Hudson commented on HDFS-14758:
-------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #17942 (See
[https://builds.apache.org/job/Hadoop-trunk-Commit/17942/])
HDFS-14758. Make lease hard limit configurable and reduce the default. (kihwal:
rev 9b8a78d97bfd825ce840c6033371c7f10e49a5b8)
* (edit)
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/client/HdfsClientConfigKeys.java
* (edit)
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestLeaseRecovery2.java
* (edit)
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java
* (edit)
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/LeaseManager.java
* (edit)
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestLease.java
* (edit)
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileAppend4.java
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml
* (edit)
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFileTruncate.java
* (edit)
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestINodeFileUnderConstructionWithSnapshot.java
* (edit)
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSClient.java
* (edit)
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/client/impl/DfsClientConf.java
* (edit)
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/HdfsConstants.java
> Decrease lease hard limit
> -------------------------
>
> Key: HDFS-14758
> URL: https://issues.apache.org/jira/browse/HDFS-14758
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Eric Payne
> Assignee: hemanthboyina
> Priority: Minor
> Attachments: HDFS-14758.001.patch, HDFS-14758.002.patch,
> HDFS-14758.003.patch, HDFS-14758.004.patch, HDFS-14758.005.patch,
> HDFS-14758.005.patch, HDFS-14758.006.patch
>
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]