Skip to content

Commit 07627ef

Browse files
authored
HDFS-16177. Bug fix for Util#receiveFile (#3310)
Reviewed-by: Hui Fei <ferhui@apache.org>
1 parent 0e922aa commit 07627ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/Util.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public static MD5Hash receiveFile(String url, List<File> localPaths,
287287
fos.getChannel().force(true);
288288
fos.close();
289289
double writeSec = Math.max(((float)
290-
(flushStartTime - Time.monotonicNow())) / 1000.0, 0.001);
290+
(Time.monotonicNow() - flushStartTime)) / 1000.0, 0.001);
291291
xferCombined += writeSec;
292292
xferStats.append(String
293293
.format(" Synchronous (fsync) write to disk of " +

0 commit comments

Comments
 (0)