MAPREDUCE-7250. FrameworkUploader skip replication check if timeout is 0.
Contributed by Peter Bacsko.
This commit is contained in:
parent
47fdae7904
commit
8d82c44102
@ -298,6 +298,9 @@ private void endUpload()
|
||||
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;
|
||||
@ -313,6 +316,7 @@ private void endUpload()
|
||||
" replication of %d (current replication is %d)",
|
||||
timeout, acceptableReplication, currentReplication));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
LOG.info("Cannot set replication to " +
|
||||
finalReplication + " for path: " + targetPath +
|
||||
|
Loading…
Reference in New Issue
Block a user