From 8ceaac1877556794bd8ae3573c632f5ca9414472 Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Thu, 22 Jun 2017 15:42:50 -0700 Subject: [PATCH] HDFS-12010. TestCopyPreserveFlag fails consistently because of mismatch in access time. Contributed by Mukul Kumar Singh. --- .../java/org/apache/hadoop/fs/shell/TestCopyPreserveFlag.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestCopyPreserveFlag.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestCopyPreserveFlag.java index 85e3dda54b9..47dc601ed03 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestCopyPreserveFlag.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestCopyPreserveFlag.java @@ -76,10 +76,10 @@ public class TestCopyPreserveFlag { output.writeChar('\n'); } output.close(); - fs.setTimes(FROM, MODIFICATION_TIME, ACCESS_TIME); fs.setPermission(FROM, PERMISSIONS); - fs.setTimes(DIR_FROM, MODIFICATION_TIME, ACCESS_TIME); + fs.setTimes(FROM, MODIFICATION_TIME, ACCESS_TIME); fs.setPermission(DIR_FROM, PERMISSIONS); + fs.setTimes(DIR_FROM, MODIFICATION_TIME, ACCESS_TIME); } @After