From b52fd05d42d9a76f6936a5d86c23fcd66244fe3d Mon Sep 17 00:00:00 2001 From: Ayush Saxena Date: Wed, 5 Jun 2019 22:20:26 +0530 Subject: [PATCH] HDFS-13404. Addendum: RBF: TestRouterWebHDFSContractAppend.testRenameFileBeingAppended fail. Contributed by Takanobu Asanuma. --- .../apache/hadoop/fs/contract/AbstractContractAppendTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/AbstractContractAppendTest.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/AbstractContractAppendTest.java index 02a899613c..a9fb117739 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/AbstractContractAppendTest.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/AbstractContractAppendTest.java @@ -137,7 +137,7 @@ public void testRenameFileBeingAppended() throws Throwable { // Some filesystems like WebHDFS doesn't assure sequential consistency. // In such a case, delay is needed. Given that we can not check the lease // because here is closed in client side package, simply add a sleep. - Thread.sleep(10); + Thread.sleep(100); } outputStream.write(dataset); Path renamed = new Path(testPath, "renamed");