Apache9 commented on a change in pull request #667: HBASE-23055 Alter hbase:meta
URL: https://github.com/apache/hbase/pull/667#discussion_r330095237
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/DisableTableProcedure.java
##########
@@ -242,10 +241,7 @@ public TableOperationType getTableOperationType() {
*/
private boolean prepareDisable(final MasterProcedureEnv env) throws
IOException {
boolean canTableBeDisabled = true;
- if (tableName.equals(TableName.META_TABLE_NAME)) {
- setFailure("master-disable-table", new ConstraintException("Cannot
disable catalog table"));
- canTableBeDisabled = false;
- } else if
(!MetaTableAccessor.tableExists(env.getMasterServices().getConnection(),
tableName)) {
+ if
(!MetaTableAccessor.tableExists(env.getMasterServices().getConnection(),
tableName)) {
Review comment:
MetaTableAccessor can be used to test whether meta table exists?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services