HDFS-12449. TestReconstructStripedFile.testNNSendsErasureCodingTasks randomly cannot finish in 60s. (SammiChen via lei)
This commit is contained in:
parent
fda1221c55
commit
7bbeacb75e
|
@ -456,8 +456,8 @@ public class TestReconstructStripedFile {
|
||||||
ErasureCodingPolicy policy = StripedFileTestUtil.getDefaultECPolicy();
|
ErasureCodingPolicy policy = StripedFileTestUtil.getDefaultECPolicy();
|
||||||
fs.getClient().setErasureCodingPolicy("/", policy.getName());
|
fs.getClient().setErasureCodingPolicy("/", policy.getName());
|
||||||
|
|
||||||
final int fileLen = cellSize * ecPolicy.getNumDataUnits() * 2;
|
final int fileLen = cellSize * ecPolicy.getNumDataUnits();
|
||||||
for (int i = 0; i < 100; i++) {
|
for (int i = 0; i < 50; i++) {
|
||||||
writeFile(fs, "/ec-file-" + i, fileLen);
|
writeFile(fs, "/ec-file-" + i, fileLen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue