HBASE-19509 RSGroupAdminEndpoint#preCreateTable triggers TableNotFoundException

This commit is contained in:
Andrew Purtell 2017-12-15 09:11:11 -08:00
parent ff023bcc4b
commit dfd4df6d8f
1 changed files with 1 additions and 2 deletions

View File

@ -358,7 +358,6 @@ public class RSGroupAdminEndpoint extends RSGroupAdminService
public void preCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx, public void preCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc, HRegionInfo[] regions) throws IOException { HTableDescriptor desc, HRegionInfo[] regions) throws IOException {
groupAdminServer.prepareRSGroupForTable(desc); groupAdminServer.prepareRSGroupForTable(desc);
assignTableToGroup(desc);
} }
// Remove table from its RSGroup. // Remove table from its RSGroup.
@ -374,7 +373,7 @@ public class RSGroupAdminEndpoint extends RSGroupAdminService
public void postCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx, public void postCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc, HTableDescriptor desc,
HRegionInfo[] regions) throws IOException { HRegionInfo[] regions) throws IOException {
assignTableToGroup(desc);
} }
@Override @Override