You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by we...@apache.org on 2020/04/21 16:51:23 UTC

[hadoop] branch branch-3.2 updated: HDFS-14004. TestLeaseRecovery2#testCloseWhileRecoverLease fails intermittently in trunk. Contributed by Ayush Saxena.

This is an automated email from the ASF dual-hosted git repository.

weichiu pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new 7d64d44  HDFS-14004. TestLeaseRecovery2#testCloseWhileRecoverLease fails intermittently in trunk. Contributed by Ayush Saxena.
7d64d44 is described below

commit 7d64d44515045bb3dedd91a4a0351bc5a6178a14
Author: Inigo Goiri <in...@apache.org>
AuthorDate: Tue Oct 23 14:28:37 2018 -0700

    HDFS-14004. TestLeaseRecovery2#testCloseWhileRecoverLease fails intermittently in trunk. Contributed by Ayush Saxena.
    
    (cherry picked from commit efdfe679d64ce9de4ba6aaf2afa34e180f68d969)
---
 .../src/test/java/org/apache/hadoop/hdfs/TestLeaseRecovery2.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestLeaseRecovery2.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestLeaseRecovery2.java
index b283c16..ca2c58b 100755
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestLeaseRecovery2.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestLeaseRecovery2.java
@@ -171,7 +171,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);


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org