HDFS-16177. Bug fix for Util#receiveFile (#3310)
Reviewed-by: Hui Fei <ferhui@apache.org>
(cherry picked from commit 07627ef19e
)
This commit is contained in:
parent
226f94b4fc
commit
5a1ed37893
|
@ -285,7 +285,7 @@ public final class Util {
|
|||
fos.getChannel().force(true);
|
||||
fos.close();
|
||||
double writeSec = Math.max(((float)
|
||||
(flushStartTime - Time.monotonicNow())) / 1000.0, 0.001);
|
||||
(Time.monotonicNow() - flushStartTime)) / 1000.0, 0.001);
|
||||
xferCombined += writeSec;
|
||||
xferStats.append(String
|
||||
.format(" Synchronous (fsync) write to disk of " +
|
||||
|
|
Loading…
Reference in New Issue