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 na...@apache.org on 2017/10/19 19:09:56 UTC

hadoop git commit: HDFS-12675. Ozone: TestLeaseManager#testLeaseCallbackWithMultipleLeases fails. Contributed by Yiqun Lin.

Repository: hadoop
Updated Branches:
  refs/heads/HDFS-7240 9bf86dfc0 -> 0fb394b79


HDFS-12675. Ozone: TestLeaseManager#testLeaseCallbackWithMultipleLeases fails. Contributed by Yiqun Lin.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/0fb394b7
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/0fb394b7
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/0fb394b7

Branch: refs/heads/HDFS-7240
Commit: 0fb394b7915aca89e1a6faafc24e4aad5862e61d
Parents: 9bf86df
Author: Nanda kumar <na...@apache.org>
Authored: Fri Oct 20 00:39:44 2017 +0530
Committer: Nanda kumar <na...@apache.org>
Committed: Fri Oct 20 00:39:44 2017 +0530

----------------------------------------------------------------------
 .../java/org/apache/hadoop/ozone/lease/TestLeaseManager.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/0fb394b7/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/lease/TestLeaseManager.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/lease/TestLeaseManager.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/lease/TestLeaseManager.java
index 07cd415..517c1a7 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/lease/TestLeaseManager.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/lease/TestLeaseManager.java
@@ -138,7 +138,7 @@ public class TestLeaseManager {
     Lease<DummyResource> leaseThree = manager.acquire(resourceThree);
     Assert.assertEquals(leaseThree, manager.get(resourceThree));
     Assert.assertFalse(leaseThree.hasExpired());
-    long sleepTime = leaseThree.getRemainingTime() + 5;
+    long sleepTime = leaseThree.getRemainingTime() + 1000;
     try {
       Thread.sleep(sleepTime);
     } catch (InterruptedException ex) {
@@ -189,7 +189,7 @@ public class TestLeaseManager {
       return null;
     });
     // wait for lease to expire
-    long sleepTime = leaseOne.getRemainingTime() + 5;
+    long sleepTime = leaseOne.getRemainingTime() + 1000;
     try {
       Thread.sleep(sleepTime);
     } catch (InterruptedException ex) {
@@ -278,7 +278,7 @@ public class TestLeaseManager {
     manager.release(resourceThree);
 
     // wait for other leases to expire
-    long sleepTime = leaseFive.getRemainingTime() + 10;
+    long sleepTime = leaseFive.getRemainingTime() + 1000;
 
     try {
       Thread.sleep(sleepTime);
@@ -332,7 +332,7 @@ public class TestLeaseManager {
     Assert.assertFalse(leaseOne.hasExpired());
 
     // wait for lease to expire
-    long sleepTime = leaseOne.getRemainingTime() + 5;
+    long sleepTime = leaseOne.getRemainingTime() + 1000;
     try {
       Thread.sleep(sleepTime);
     } catch (InterruptedException ex) {


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