Bug 1136095 - [QE] (6.3.x) Intermittent failures of HornetQBackupActivationTestCase
Summary: [QE] (6.3.x) Intermittent failures of HornetQBackupActivationTestCase
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: JMS
Version: 6.3.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Jeff Mesnil
QA Contact: Miroslav Novak
Russell Dickenson
URL:
Whiteboard:
Depends On: 970243 1089163
Blocks: 996500
TreeView+ depends on / blocked
 
Reported: 2014-09-01 18:13 UTC by Pavel Jelinek
Modified: 2014-10-21 09:51 UTC (History)
5 users (show)

Fixed In Version:
Clone Of: 1089163
Environment:
Last Closed: 2014-10-20 13:23:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker HORNETQ-1180 0 Major Resolved provide server lifecycle callbacks 2016-09-23 15:14:54 UTC
Red Hat Issue Tracker JBQA-9611 0 Critical Open org.jboss.as.test.manualmode.messaging.HornetQBackupActivationTestCase.testBackupActivation intermittently fails due to ... 2016-09-23 15:14:53 UTC

Description Pavel Jelinek 2014-09-01 18:13:48 UTC
+++ This bug was initially created as a clone of Bug #1089163 +++

Description of problem:

There is intermittent failure in HornetQBackupActivationTestCase.testBackupActivation. See [1] for more details. 

Test is failing on assert in:
HornetQBackupActivationTestCase.checkJMSTopic(HornetQBackupActivationTestCase.java:487)

It seems that this check is run before topic is bound to JNDI because in server.log this topic deployed:
[0m04:13:42,203 INFO  [org.jboss.as.messaging] (ServerService Thread Pool -- 22) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/1107b76d-f9f3-4ac1-ae91-89efad61886c

[1] https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP-6.2.x-CP/view/EAP-6.2.x-CP-jobs/job/eap-62x-patched-as-testsuite-Solaris-matrix-OracleJDK6/35/BITS=-d32,jdk=java16_default,label_exp=solaris10%26%26x86/testReport/org.jboss.as.test.manualmode.messaging/HornetQBackupActivationTestCase/testBackupActivation/

--- Additional comment from Miroslav Novak on 2014-04-23 06:59:28 EDT ---

Hi Jeff,

we're getting intermittent failure in HornetQBackupActivationTestCase. We're unsure whether it's test issue or this is real bug. 

From console log of backup server there is:
...
04:13:41,590 INFO  [org.hornetq.core.server] (ServerService Thread Pool -- 22) HQ221003: trying to deploy queue jms.topic.1107b76d-f9f3-4ac1-ae91-89efad61886c
...
04:13:41,690 INFO  [org.hornetq.core.server] (HQ119000: Activation for server HornetQServerImpl::serverUUID=339aa96c-b3f5-11e3-9a75-7f9e59dd90dc) HQ221010: Backup Server is now live
...
04:13:42,203 INFO  [org.jboss.as.messaging] (ServerService Thread Pool -- 22) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/1107b76d-f9f3-4ac1-ae91-89efad61886c

so topic is bound to JNDI after "Backup Server is now live". 

This could cause that any new client connecting to backup before topic is bound could fail to lookup this topic. WDYT?

Thanks,
Mirek

--- Additional comment from Jeff Mesnil on 2014-04-24 08:24:36 EDT ---

there is indeed a timeframe when the backup server becomes live but the JMS topic is not already bound.

The root issue is that HornetQ only notifies WildFly when the hornetq core server becomes live but at this points the JMS resources have not been loaded. See https://issues.jboss.org/browse/HORNETQ-1180

For the tests, we can reduce that timeframe by adding a Thread.sleep after the backup server becomes live and before checking whether the JMS topic is bound

--- Additional comment from Miroslav Novak on 2014-07-07 09:39:12 EDT ---

No new CP release is planned for EAP 6.2.x and this issue won't be fixed in it. Closing as won't fix. 

Work on this for EAP 6.4 will be tracked on bz#970243.

Comment 5 JBoss JIRA Server 2014-10-21 09:51:08 UTC
Andy Taylor <ataylor> updated the status of jira HORNETQ-1180 to Resolved


Note You need to log in before you can comment on or make changes to this bug.