hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lium...@apache.org
Subject hadoop git commit: HDFS-10934. TestDFSShell#testStat fails intermittently. Contributed by Eric Badger
Date Tue, 04 Oct 2016 02:47:13 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 d963ecb91 -> 612aa0cc0


HDFS-10934. TestDFSShell#testStat fails intermittently. Contributed by Eric Badger

(cherry picked from commit f61e3d13e9610cbd09886359553f27d6480f6735)


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

Branch: refs/heads/branch-2
Commit: 612aa0cc0b2cee538a671157d55d1f045eb6c1aa
Parents: d963ecb
Author: Mingliang Liu <liuml07@apache.org>
Authored: Mon Oct 3 22:34:41 2016 -0400
Committer: Mingliang Liu <liuml07@apache.org>
Committed: Mon Oct 3 22:47:09 2016 -0400

----------------------------------------------------------------------
 .../src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/612aa0cc/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java
index 042a81c..6068978 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java
@@ -2060,11 +2060,11 @@ public class TestDFSShell {
       fmt.setTimeZone(TimeZone.getTimeZone("UTC"));
       final Path testDir1 = new Path("testStat", "dir1");
       dfs.mkdirs(testDir1);
-      final FileStatus status1 = dfs.getFileStatus(testDir1);
-      final String mtime1 = fmt.format(new Date(status1.getModificationTime()));
       final Path testFile2 = new Path(testDir1, "file2");
       DFSTestUtil.createFile(dfs, testFile2, 2 * blockSize, (short) 3, 0);
-      final FileStatus status2 = dfs.getFileStatus(testDir1);
+      final FileStatus status1 = dfs.getFileStatus(testDir1);
+      final String mtime1 = fmt.format(new Date(status1.getModificationTime()));
+      final FileStatus status2 = dfs.getFileStatus(testFile2);
       final String mtime2 = fmt.format(new Date(status2.getModificationTime()));
 
       final ByteArrayOutputStream out = new ByteArrayOutputStream();


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


Mime
View raw message