HBASE-27824 NPE in MetricsMasterWrapperImpl.isRunning (#5218)
Signed-off-by: Liangjun He <heliangjun@apache.org>
This commit is contained in:
parent
89e80da57f
commit
78610decaa
|
@ -67,13 +67,9 @@ public class MockNoopMasterServices implements MasterServices {
|
|||
private final Configuration conf;
|
||||
private final MetricsMaster metricsMaster;
|
||||
|
||||
public MockNoopMasterServices() {
|
||||
this(null);
|
||||
}
|
||||
|
||||
public MockNoopMasterServices(final Configuration conf) {
|
||||
this.conf = conf;
|
||||
this.metricsMaster = new MetricsMaster(new MetricsMasterWrapperImpl(null));
|
||||
this.metricsMaster = new MetricsMaster(new MetricsMasterWrapperImpl(mock(HMaster.class)));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue