hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From su...@apache.org
Subject [07/50] hadoop git commit: HDFS-10590: Fix TestReconstructStripedBlocks.testCountLiveReplicas test failures. Contributed by Rakesh R
Date Tue, 19 Jul 2016 21:41:07 GMT
HDFS-10590: Fix TestReconstructStripedBlocks.testCountLiveReplicas test failures. Contributed
by Rakesh R


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

Branch: refs/heads/YARN-2915
Commit: b71d5ed14f8dc1377c92f1811497df1f1801c519
Parents: e1ef53d
Author: Uma Maheswara Rao G <uma.gangumalla@intel.com>
Authored: Wed Jul 13 00:07:11 2016 -0700
Committer: Subru Krishnan <subru@apache.org>
Committed: Tue Jul 19 14:39:29 2016 -0700

----------------------------------------------------------------------
 .../src/test/java/org/apache/hadoop/hdfs/StripedFileTestUtil.java  | 2 ++
 .../hadoop/hdfs/server/namenode/TestReconstructStripedBlocks.java  | 2 ++
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/b71d5ed1/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/StripedFileTestUtil.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/StripedFileTestUtil.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/StripedFileTestUtil.java
index 4c3afdd..0b036fd 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/StripedFileTestUtil.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/StripedFileTestUtil.java
@@ -514,6 +514,8 @@ public class StripedFileTestUtil {
   public static LocatedBlocks waitForReconstructionFinished(Path file,
                                   DistributedFileSystem fs, int groupSize)
       throws Exception {
+    LOG.info("Waiting for reconstruction to be finished for the file:" + file
+        + ", groupSize:" + groupSize);
     final int attempts = 60;
     for (int i = 0; i < attempts; i++) {
       LocatedBlocks locatedBlocks = getLocatedBlocks(file, fs);

http://git-wip-us.apache.org/repos/asf/hadoop/blob/b71d5ed1/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestReconstructStripedBlocks.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestReconstructStripedBlocks.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestReconstructStripedBlocks.java
index 6069924..c38b6b4 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestReconstructStripedBlocks.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestReconstructStripedBlocks.java
@@ -303,6 +303,8 @@ public class TestReconstructStripedBlocks {
 
       // check if NN can detect the missing internal block and finish the
       // reconstruction
+      StripedFileTestUtil.waitForReconstructionFinished(filePath, fs,
+          GROUP_SIZE);
       boolean reconstructed = false;
       for (int i = 0; i < 5; i++) {
         NumberReplicas num = null;


---------------------------------------------------------------------
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