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:
wangzhaohui 2023-06-15 20:50:53 +08:00 committed by GitHub
parent 2fe3b2a73f
commit 02027c8dcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,9 +106,9 @@ private void recoverFile(final FileSystem fs) throws Exception {
// set the soft limit to be 1 second so that the
// namenode triggers lease recovery upon append request
cluster.setLeasePeriod(1,
cluster.setLeasePeriod(1000,
conf.getLong(DFSConfigKeys.DFS_LEASE_HARDLIMIT_KEY,
DFSConfigKeys.DFS_LEASE_HARDLIMIT_DEFAULT));
DFSConfigKeys.DFS_LEASE_HARDLIMIT_DEFAULT) * 1000);
// Trying recovery
int tries = 60;