hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aajis...@apache.org
Subject hadoop git commit: HADOOP-14893. WritableRpcEngine should use Time.monotonicNow. Contributed by Chetna Chaudhari.
Date Tue, 26 Sep 2017 07:48:39 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.8 ea7e65589 -> 75aed2651


HADOOP-14893. WritableRpcEngine should use Time.monotonicNow. Contributed by Chetna Chaudhari.

(cherry picked from commit d08b8c801a908b4242e7b21a54f3b1e4072f1eae)
(cherry picked from commit b017af23911c08d1f7e928007ebd42dbdbd82507)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/75aed265
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/75aed265
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/75aed265

Branch: refs/heads/branch-2.8
Commit: 75aed265110014750f415e2c8fff9d59347392af
Parents: ea7e655
Author: Akira Ajisaka <aajisaka@apache.org>
Authored: Tue Sep 26 16:45:39 2017 +0900
Committer: Akira Ajisaka <aajisaka@apache.org>
Committed: Tue Sep 26 16:48:28 2017 +0900

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/ipc/WritableRpcEngine.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/75aed265/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/WritableRpcEngine.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/WritableRpcEngine.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/WritableRpcEngine.java
index 9ed710c..d52586d 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/WritableRpcEngine.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/WritableRpcEngine.java
@@ -233,7 +233,7 @@ public class WritableRpcEngine implements RpcEngine {
       throws Throwable {
       long startTime = 0;
       if (LOG.isDebugEnabled()) {
-        startTime = Time.now();
+        startTime = Time.monotonicNow();
       }
 
       // if Tracing is on then start a new span for this rpc.
@@ -253,7 +253,7 @@ public class WritableRpcEngine implements RpcEngine {
         if (traceScope != null) traceScope.close();
       }
       if (LOG.isDebugEnabled()) {
-        long callTime = Time.now() - startTime;
+        long callTime = Time.monotonicNow() - startTime;
         LOG.debug("Call: " + method.getName() + " " + callTime);
       }
       return value.get();


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


Mime
View raw message