Fix over-optimistic log message. (#3963)

"Wrote task log" could be logged before the output stream is flushed and
closed, which could generate an error and not actually write the log.
This commit is contained in:
Gian Merlino 2017-02-22 15:02:53 -08:00 committed by GitHub
parent edb032b96d
commit f21641f0dc
1 changed files with 2 additions and 1 deletions

View File

@ -66,8 +66,9 @@ public class HdfsTaskLogs implements TaskLogs
final OutputStream out = fs.create(path, true) final OutputStream out = fs.create(path, true)
) { ) {
ByteStreams.copy(in, out); ByteStreams.copy(in, out);
log.info("Wrote task log to: %s", path);
} }
log.info("Wrote task log to: %s", path);
} }
@Override @Override