HADOOP-12609. Fix intermittent failure of TestDecayRpcScheduler. (Contributed by Masatake Iwasaki)
This commit is contained in:
parent
028894281b
commit
485c3468a8
|
@ -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
|
||||
|
|
|
@ -151,7 +151,7 @@ public class DecayRpcScheduler implements RpcScheduler, DecayRpcSchedulerMXBean
|
|||
// 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);
|
||||
|
|
Loading…
Reference in New Issue