Skip to content
Permalink
Browse files
HBASE-26245 Addendum fix a naming issue
  • Loading branch information
Apache9 committed Mar 31, 2022
1 parent bb1bbdd commit 27111421d9e884278f575c7292f739e87273acee
Showing 3 changed files with 4 additions and 4 deletions.
@@ -22,7 +22,7 @@
import java.util.Set;
import org.apache.hadoop.hbase.ServerName;

public class DummyRegionServerListStorage implements RegionServerList {
public class DummyRegionServerList implements RegionServerList {

@Override
public void started(ServerName sn) {
@@ -49,7 +49,7 @@ public class TestClockSkewDetection {
public void testClockSkewDetection() throws Exception {
final Configuration conf = HBaseConfiguration.create();
ServerManager sm =
new ServerManager(new MockNoopMasterServices(conf), new DummyRegionServerListStorage());
new ServerManager(new MockNoopMasterServices(conf), new DummyRegionServerList());

LOG.debug("regionServerStartup 1");
InetAddress ia1 = InetAddress.getLocalHost();
@@ -38,7 +38,7 @@
import org.apache.hadoop.hbase.client.TableDescriptor;
import org.apache.hadoop.hbase.client.TableDescriptorBuilder;
import org.apache.hadoop.hbase.client.TableState;
import org.apache.hadoop.hbase.master.DummyRegionServerListStorage;
import org.apache.hadoop.hbase.master.DummyRegionServerList;
import org.apache.hadoop.hbase.master.LoadBalancer;
import org.apache.hadoop.hbase.master.MasterFileSystem;
import org.apache.hadoop.hbase.master.MasterServices;
@@ -116,7 +116,7 @@ public MockMasterServices(Configuration conf,
this.assignmentManager =
new AssignmentManager(this, masterRegion, new MockRegionStateStore(this, masterRegion));
this.balancer = LoadBalancerFactory.getLoadBalancer(conf);
this.serverManager = new ServerManager(this, new DummyRegionServerListStorage());
this.serverManager = new ServerManager(this, new DummyRegionServerList());
this.tableStateManager = Mockito.mock(TableStateManager.class);
Mockito.when(this.tableStateManager.getTableState(Mockito.any())).
thenReturn(new TableState(TableName.valueOf("AnyTableNameSetInMockMasterServcies"),

0 comments on commit 2711142

Please sign in to comment.