You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by we...@apache.org on 2021/08/19 04:32:07 UTC

[hadoop] branch branch-3.3 updated: HDFS-16177. Bug fix for Util#receiveFile (#3310)

This is an automated email from the ASF dual-hosted git repository.

weichiu pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.3 by this push:
     new 5a1ed37  HDFS-16177. Bug fix for Util#receiveFile (#3310)
5a1ed37 is described below

commit 5a1ed378939caa396ff27b1e6f2f229ece4f190c
Author: litao <to...@gmail.com>
AuthorDate: Thu Aug 19 12:30:38 2021 +0800

    HDFS-16177. Bug fix for Util#receiveFile (#3310)
    
    Reviewed-by: Hui Fei <fe...@apache.org>
    (cherry picked from commit 07627ef19e2bf4c87f12b53e508edf8fee05856a)
---
 .../src/main/java/org/apache/hadoop/hdfs/server/common/Util.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/Util.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/Util.java
index 14cc1c4..be487be 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/Util.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/Util.java
@@ -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 " +

---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org