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:22 UTC

[hadoop] branch branch-3.1 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.1
in repository https://gitbox.apache.org/repos/asf/hadoop.git


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

commit 3938aa422ec9b8ee81e9fe2d4ed9268208a96fba
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)
    (cherry picked from commit 7d64d44515045bb3dedd91a4a0351bc5a6178a14)
---
 .../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 c5d827b..ae315d1 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
@@ -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);


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