HADOOP-12609. Fix intermittent failure of TestDecayRpcScheduler. (Contributed by Masatake Iwasaki)

This commit is contained in:
Arpit Agarwal 2015-12-01 09:27:23 -08:00
parent 028894281b
commit 485c3468a8
2 changed files with 4 additions and 1 deletions

View File

@ -1491,6 +1491,9 @@ Release 2.8.0 - UNRELEASED
HADOOP-12313. NPE in JvmPauseMonitor when calling stop() before start().
(Gabor Liptak via wheat9)
HADOOP-12609. Fix intermittent failure of TestDecayRpcScheduler.
(Masatake Iwasaki via Arpit Agarwal)
Release 2.7.3 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -151,7 +151,7 @@ public DecayRpcScheduler(int numQueues, String ns, Configuration conf) {
// Setup delay timer
Timer timer = new Timer();
DecayTask task = new DecayTask(this, timer);
timer.scheduleAtFixedRate(task, 0, this.decayPeriodMillis);
timer.scheduleAtFixedRate(task, decayPeriodMillis, decayPeriodMillis);
MetricsProxy prox = MetricsProxy.getInstance(ns);
prox.setDelegate(this);