Skip to content

Commit

Permalink
HBASE-27824 NPE in MetricsMasterWrapperImpl.isRunning (#5218)
Browse files Browse the repository at this point in the history
Signed-off-by: Liangjun He <heliangjun@apache.org>
  • Loading branch information
Apache9 committed May 4, 2023
1 parent 89e80da commit 78610de
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78610de

Please sign in to comment.