From e06fa1d5292066625f6bc4d236c4a7461669f42a Mon Sep 17 00:00:00 2001 From: jxiang Date: Tue, 13 Aug 2013 16:29:44 +0000 Subject: [PATCH] HBASE-9199 Call duration is not accurate git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1513584 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/hadoop/hbase/client/RpcRetryingCaller.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RpcRetryingCaller.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RpcRetryingCaller.java index 2c456bb405b..ee4492408d1 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RpcRetryingCaller.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RpcRetryingCaller.java @@ -160,7 +160,8 @@ public class RpcRetryingCaller { * @return Calculate how long a single call took */ private long singleCallDuration(final long expectedSleep) { - return (this.endTime - this.globalStartTime) + MIN_RPC_TIMEOUT + expectedSleep; + return (EnvironmentEdgeManager.currentTimeMillis() - this.globalStartTime) + + MIN_RPC_TIMEOUT + expectedSleep; } /**