HADOOP-14166. Reset the DecayRpcScheduler AvgResponseTime metric to zero when queue is not used. Contributed by Surendra Singh Lilhore.
(cherry picked from commit dcf4559ebd
)
This commit is contained in:
parent
e3a65b24bf
commit
6f55be197c
|
@ -618,6 +618,8 @@ public class DecayRpcScheduler implements RpcScheduler,
|
|||
} else {
|
||||
responseTimeAvgInLastWindow.set(i, averageResponseTime);
|
||||
}
|
||||
} else {
|
||||
responseTimeAvgInLastWindow.set(i, 0);
|
||||
}
|
||||
responseTimeCountInLastWindow.set(i, responseTimeCount);
|
||||
if (LOG.isDebugEnabled()) {
|
||||
|
|
Loading…
Reference in New Issue