mirror of https://github.com/apache/druid.git
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:
parent
edb032b96d
commit
f21641f0dc
|
@ -66,8 +66,9 @@ public class HdfsTaskLogs implements TaskLogs
|
|||
final OutputStream out = fs.create(path, true)
|
||||
) {
|
||||
ByteStreams.copy(in, out);
|
||||
log.info("Wrote task log to: %s", path);
|
||||
}
|
||||
|
||||
log.info("Wrote task log to: %s", path);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue