arshadmohammad commented on pull request #2883:
URL: https://github.com/apache/hbase/pull/2883#issuecomment-789607370
This scenario is handled.
If rsgroup info is changed while modifying the table, table is moved to
changed rsgroup.
This is handled in RSGroupAdminEndpoint#preModifyTableAction
```
@Override
public void
preModifyTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName, TableDescriptor currentDescriptor, TableDescriptor
newDescriptor)
throws IOException {
// If table's rsgroup is changed, it must be valid
if
(!currentDescriptor.getRegionServerGroup().equals(newDescriptor.getRegionServerGroup()))
{
RSGroupInfo rsGroupInfo = determineRSGroupInfoForTable(newDescriptor);
validateRSGroup(newDescriptor, rsGroupInfo);
}
}
```
----------------------------------------------------------------
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]