Revert "MAPREDUCE-7250. FrameworkUploader skip replication check if timeout is 0."

This reverts commit 8d82c44102.
This commit is contained in:
prabhujoseph 2019-12-05 12:31:13 +05:30
parent 8d82c44102
commit 304e75a48b
1 changed files with 14 additions and 18 deletions

View File

@ -298,9 +298,6 @@ public class FrameworkUploader implements Runnable {
fileSystem.setReplication(targetPath, finalReplication);
LOG.info("Set replication to " +
finalReplication + " for path: " + targetPath);
if (timeout == 0) {
LOG.info("Timeout is set to 0. Skipping replication check.");
} else {
long startTime = System.currentTimeMillis();
long endTime = startTime;
long currentReplication = 0;
@ -316,7 +313,6 @@ public class FrameworkUploader implements Runnable {
" replication of %d (current replication is %d)",
timeout, acceptableReplication, currentReplication));
}
}
} else {
LOG.info("Cannot set replication to " +
finalReplication + " for path: " + targetPath +