HADOOP-14166. Reset the DecayRpcScheduler AvgResponseTime metric to zero when queue is not used. Contributed by Surendra Singh Lilhore.
(cherry picked from commit dcf4559ebdb5bb11d03b264a9875bff316b89eef)
This commit is contained in:
parent
cf4e6d6b1d
commit
d9492839d0
@ -618,6 +618,8 @@ void updateAverageResponseTime(boolean enableDecay) {
|
||||
} else {
|
||||
responseTimeAvgInLastWindow.set(i, averageResponseTime);
|
||||
}
|
||||
} else {
|
||||
responseTimeAvgInLastWindow.set(i, 0);
|
||||
}
|
||||
responseTimeCountInLastWindow.set(i, responseTimeCount);
|
||||
if (LOG.isDebugEnabled()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user