HBASE-19726 Failed to start HMaster due to infinite retrying on meta assign; ADDENDUM Fix failing TestMetaWithReplicas#testShutdownHandling; it was reading meta TableState
This commit is contained in:
parent
2e1ec3d3d8
commit
b0e998f2a5
|
@ -1109,6 +1109,9 @@ public class MetaTableAccessor {
|
||||||
@Nullable
|
@Nullable
|
||||||
public static TableState getTableState(Connection conn, TableName tableName)
|
public static TableState getTableState(Connection conn, TableName tableName)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
|
if (tableName.equals(TableName.META_TABLE_NAME)) {
|
||||||
|
return new TableState(tableName, TableState.State.ENABLED);
|
||||||
|
}
|
||||||
Table metaHTable = getMetaHTable(conn);
|
Table metaHTable = getMetaHTable(conn);
|
||||||
Get get = new Get(tableName.getName()).addColumn(getTableFamily(), getTableStateColumn());
|
Get get = new Get(tableName.getName()).addColumn(getTableFamily(), getTableStateColumn());
|
||||||
long time = EnvironmentEdgeManager.currentTime();
|
long time = EnvironmentEdgeManager.currentTime();
|
||||||
|
|
Loading…
Reference in New Issue