[
https://issues.apache.org/jira/browse/HBASE-20607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16483703#comment-16483703
]
Nihal Jain commented on HBASE-20607:
------------------------------------
{quote}I think we can implement the waiting inside
masterServices#createSystemTable and call the following after system table is
created:
{quote}
How about adding a postStartMaster instead? This will move all system tables to
appropriate groups (if required).
{code:java}
@Override
public void postStartMaster(final
ObserverContext<MasterCoprocessorEnvironment> ctx)
throws IOException {
List<TableDescriptor> systemNamespaceDesc =
master.listTableDescriptorsByNamespace(NamespaceDescriptor.SYSTEM_NAMESPACE_NAME_STR);
for (TableDescriptor desc : systemNamespaceDesc) {
assignTableToGroup(desc);
}
}
{code}
{quote}Not just system tables. Maybe all other tables should also check whether
they are in the correct grouping.
{quote}
I think only system table skip the postCreateTable hook as they get created
even before rsgroups endpoint is initialized. Do we need to do this for other
tables ? If yes, for which scenario?
> hbase namespace table is not created/assigned to correct rsgroup
> ----------------------------------------------------------------
>
> Key: HBASE-20607
> URL: https://issues.apache.org/jira/browse/HBASE-20607
> Project: HBase
> Issue Type: Bug
> Components: master
> Reporter: Biju Nair
> Priority: Major
>
> This is a follow-up ticket of HBASE-20566
> * Create a {{rsgroup}} and assign {{hbase}} namespace to the new {{rsgroup}}
> * Enable {{quota}} feature by adding the property hbase.quota.enable
> and restarting {{hbase}}
> * By listing the {{rsgroups}}, the {{hbase:quota}} will listed under the
> {{default}} rsgroup.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)