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