HDFS-17051. Fix wrong time unit in TestFileAppend4#recoverFile (#5749). Contributed by Zhaohui Wang.
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
parent
2fe3b2a73f
commit
02027c8dcc
@ -106,9 +106,9 @@ private void recoverFile(final FileSystem fs) throws Exception {
|
|||||||
|
|
||||||
// set the soft limit to be 1 second so that the
|
// set the soft limit to be 1 second so that the
|
||||||
// namenode triggers lease recovery upon append request
|
// namenode triggers lease recovery upon append request
|
||||||
cluster.setLeasePeriod(1,
|
cluster.setLeasePeriod(1000,
|
||||||
conf.getLong(DFSConfigKeys.DFS_LEASE_HARDLIMIT_KEY,
|
conf.getLong(DFSConfigKeys.DFS_LEASE_HARDLIMIT_KEY,
|
||||||
DFSConfigKeys.DFS_LEASE_HARDLIMIT_DEFAULT));
|
DFSConfigKeys.DFS_LEASE_HARDLIMIT_DEFAULT) * 1000);
|
||||||
|
|
||||||
// Trying recovery
|
// Trying recovery
|
||||||
int tries = 60;
|
int tries = 60;
|
||||||
|
Loading…
Reference in New Issue
Block a user