[
https://issues.apache.org/jira/browse/PHOENIX-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17261076#comment-17261076
]
Viraj Jasani commented on PHOENIX-6288:
---------------------------------------
{quote}This may be just a normal side effect of reusing the MiniCluster for
multiple tests
{quote}
That's true, we have same static variable defined in BaseTest, which is being
used by majority of tests. In HBase tests, individual test classes have their
own HBaseTestingUtility instance. We also do initialize new instances of
HBaseTestingUtility, however we assign newly created instance to static
variable _*utility*_ in BaseTest. And this static variable is being used in all
tests, hence parallel init could cause issues.
[~stoty] [~yanxinyi] If you agree to refactoring this entirely and letting
individual IT tests to maintain their own utility instance, I am fine spending
one entire day and refactor this whole. While doing so, might figure some
better approach too but as of now it seems IT tests should manage their own
HBaseTestingUtility instance rather than sharing with all other tests. WDYT?
> Minicluster startup problems on Jenkins
> ---------------------------------------
>
> Key: PHOENIX-6288
> URL: https://issues.apache.org/jira/browse/PHOENIX-6288
> Project: Phoenix
> Issue Type: Bug
> Reporter: Istvan Toth
> Assignee: Istvan Toth
> Priority: Critical
> Fix For: 5.1.0, 4.16.0
>
>
> We are sporadically getting Test failures on Jenkins that are caused by the
> miniCluster startup timeouts.
> {noformat}
> Caused by: java.lang.RuntimeException: Master not active after 30000ms at
> org.apache.hadoop.hbase.util.JVMClusterUtil.waitForEvent(JVMClusterUtil.java:232)
>
> at
> org.apache.hadoop.hbase.util.JVMClusterUtil.startup(JVMClusterUtil.java:188)
> at
> org.apache.hadoop.hbase.LocalHBaseCluster.startup(LocalHBaseCluster.java:430)
> at org.apache.hadoop.hbase.MiniHBaseCluster.init(MiniHBaseCluster.java:259)
> ... 43 more
> {noformat}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)