Skip to content

Commit 02027c8

Browse files
authored
HDFS-17051. Fix wrong time unit in TestFileAppend4#recoverFile (#5749). Contributed by Zhaohui Wang.
Signed-off-by: Ayush Saxena <[email protected]>
1 parent 2fe3b2a commit 02027c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileAppend4.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ private void recoverFile(final FileSystem fs) throws Exception {
106106

107107
// set the soft limit to be 1 second so that the
108108
// namenode triggers lease recovery upon append request
109-
cluster.setLeasePeriod(1,
109+
cluster.setLeasePeriod(1000,
110110
conf.getLong(DFSConfigKeys.DFS_LEASE_HARDLIMIT_KEY,
111-
DFSConfigKeys.DFS_LEASE_HARDLIMIT_DEFAULT));
111+
DFSConfigKeys.DFS_LEASE_HARDLIMIT_DEFAULT) * 1000);
112112

113113
// Trying recovery
114114
int tries = 60;

0 commit comments

Comments
 (0)