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(). HADOOP-12313. NPE in JvmPauseMonitor when calling stop() before start().
(Gabor Liptak via wheat9) (Gabor Liptak via wheat9)
HADOOP-12609. Fix intermittent failure of TestDecayRpcScheduler.
(Masatake Iwasaki via Arpit Agarwal)
Release 2.7.3 - UNRELEASED Release 2.7.3 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -151,7 +151,7 @@ public class DecayRpcScheduler implements RpcScheduler, DecayRpcSchedulerMXBean
// Setup delay timer // Setup delay timer
Timer timer = new Timer(); Timer timer = new Timer();
DecayTask task = new DecayTask(this, timer); DecayTask task = new DecayTask(this, timer);
timer.scheduleAtFixedRate(task, 0, this.decayPeriodMillis); timer.scheduleAtFixedRate(task, decayPeriodMillis, decayPeriodMillis);
MetricsProxy prox = MetricsProxy.getInstance(ns); MetricsProxy prox = MetricsProxy.getInstance(ns);
prox.setDelegate(this); prox.setDelegate(this);