HBASE-9199 Call duration is not accurate
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1513584 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0a84963bb8
commit
e06fa1d529
|
@ -160,7 +160,8 @@ public class RpcRetryingCaller<T> {
|
||||||
* @return Calculate how long a single call took
|
* @return Calculate how long a single call took
|
||||||
*/
|
*/
|
||||||
private long singleCallDuration(final long expectedSleep) {
|
private long singleCallDuration(final long expectedSleep) {
|
||||||
return (this.endTime - this.globalStartTime) + MIN_RPC_TIMEOUT + expectedSleep;
|
return (EnvironmentEdgeManager.currentTimeMillis() - this.globalStartTime)
|
||||||
|
+ MIN_RPC_TIMEOUT + expectedSleep;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue