[
https://issues.apache.org/jira/browse/HBASE-24399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17111854#comment-17111854
]
Sun Xin commented on HBASE-24399:
---------------------------------
Thanks [~zghao] for reviewing. branch-2 has this problem too.
> [Flakey Tests] Some UTs about RSGroup should wait RSGroupInfoManager to be
> online
> ---------------------------------------------------------------------------------
>
> Key: HBASE-24399
> URL: https://issues.apache.org/jira/browse/HBASE-24399
> Project: HBase
> Issue Type: Improvement
> Components: rsgroup
> Affects Versions: 2.3.0
> Reporter: Sun Xin
> Assignee: Sun Xin
> Priority: Minor
> Fix For: 2.3.0, 2.2.5
>
>
> We will access table hbase:rsgroup when call addRSGroup, so we should ensure
> RSGroupInfoManagerImpl is online before testing in the UTs about RSGroup.
> Otherwise, the following exceptions may be saw.
> {code:java}
> java.io.IOException: java.io.IOException: Only servers in default group can
> be updated during offline modejava.io.IOException: java.io.IOException: Only
> servers in default group can be updated during offline mode at
> org.apache.hadoop.hbase.rsgroup.RSGroupInfoManagerImpl.flushConfig(RSGroupInfoManagerImpl.java:602)
> at
> org.apache.hadoop.hbase.rsgroup.RSGroupInfoManagerImpl.addRSGroup(RSGroupInfoManagerImpl.java:217)
> at
> org.apache.hadoop.hbase.rsgroup.RSGroupAdminServer.addRSGroup(RSGroupAdminServer.java:391)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)