HADOOP-12609. Fix intermittent failure of TestDecayRpcScheduler. (Contributed by Masatake Iwasaki)
This commit is contained in:
parent
45bb467918
commit
19c2c22bbe
|
@ -872,6 +872,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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue