diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/TableStateManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/TableStateManager.java index d66c09e471e..dffdb14932e 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/TableStateManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/TableStateManager.java @@ -55,8 +55,7 @@ public class TableStateManager { private final ConcurrentMap tableName2State = new ConcurrentHashMap<>(); - private final ConcurrentMap creating = - new ConcurrentHashMap<>(); + private final ConcurrentMap creating = new ConcurrentHashMap<>(); TableStateManager(MasterServices master) { this.master = master; @@ -116,16 +115,14 @@ public class TableStateManager { /** * Set a table as being created. * @param tableName name of table being created - * @return void */ public void updateCreating(TableName tableName) { - creating.put(tableName,1); + creating.put(tableName, 1); } /** * Notify that a table is created. * @param tableName name of table created - * @return void */ public void finishCreating(TableName tableName) { creating.remove(tableName); diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.java index 3d20dc5dc82..42d6fe4f4c3 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.java @@ -105,7 +105,7 @@ public class CreateTableProcedure extends AbstractStateMachineTableProcedure