saintstack commented on a change in pull request #667: HBASE-23055 Alter 
hbase:meta
URL: https://github.com/apache/hbase/pull/667#discussion_r330131226
 
 

 ##########
 File path: 
hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java
 ##########
 @@ -1077,7 +1084,7 @@ public static RegionInfo getRegionInfo(final Result r, 
byte [] qualifier) {
   public static TableState getTableState(Connection conn, TableName tableName)
       throws IOException {
     if (tableName.equals(TableName.META_TABLE_NAME)) {
-      return new TableState(tableName, TableState.State.ENABLED);
+      throw new IllegalAccessError("Go to the Master to find hbase:meta table 
state, not here");
 
 Review comment:
   Nah. This is helpful figuring all the places where we are asking 
MetaTableAccessor for hbase:meta state. It is an error if a client asks MTA for 
state of hbase:meta.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to