HDFS-14004. TestLeaseRecovery2#testCloseWhileRecoverLease fails intermittently in trunk. Contributed by Ayush Saxena.

(cherry picked from commit efdfe679d6)
(cherry picked from commit 7d64d44515)
This commit is contained in:
Inigo Goiri 2018-10-23 14:28:37 -07:00 committed by Wei-Chiu Chuang
parent e0db6c33d4
commit 3938aa422e
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ public class TestLeaseRecovery2 {
// set the soft limit to be 1 hour but recoverLease should
// close the file immediately
cluster.setLeasePeriod(LONG_LEASE_PERIOD, LONG_LEASE_PERIOD);
int size = AppendTestUtil.nextInt(FILE_SIZE);
int size = AppendTestUtil.nextInt((int) BLOCK_SIZE);
String filestr = "/testCloseWhileRecoverLease";
AppendTestUtil.LOG.info("filestr=" + filestr);