HBASE-19509 RSGroupAdminEndpoint#preCreateTable triggers TableNotFoundException
This commit is contained in:
parent
ff023bcc4b
commit
dfd4df6d8f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue