Repository: hadoop Updated Branches: refs/heads/branch-3.0 1ce365e91 -> 7d9ca2e21
HDFS-12449. TestReconstructStripedFile.testNNSendsErasureCodingTasks randomly cannot finish in 60s. (SammiChen via lei) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/7d9ca2e2 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/7d9ca2e2 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/7d9ca2e2 Branch: refs/heads/branch-3.0 Commit: 7d9ca2e21bebba22a2c2f47967280ded8c641082 Parents: 1ce365e Author: Lei Xu <[email protected]> Authored: Tue Sep 19 11:50:01 2017 -0700 Committer: Lei Xu <[email protected]> Committed: Tue Sep 19 11:51:44 2017 -0700 ---------------------------------------------------------------------- .../java/org/apache/hadoop/hdfs/TestReconstructStripedFile.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/7d9ca2e2/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestReconstructStripedFile.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestReconstructStripedFile.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestReconstructStripedFile.java index 72b1412..713a10b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestReconstructStripedFile.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestReconstructStripedFile.java @@ -456,8 +456,8 @@ public class TestReconstructStripedFile { ErasureCodingPolicy policy = StripedFileTestUtil.getDefaultECPolicy(); fs.getClient().setErasureCodingPolicy("/", policy.getName()); - final int fileLen = cellSize * ecPolicy.getNumDataUnits() * 2; - for (int i = 0; i < 100; i++) { + final int fileLen = cellSize * ecPolicy.getNumDataUnits(); + for (int i = 0; i < 50; i++) { writeFile(fs, "/ec-file-" + i, fileLen); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
