Bug 1159290
Summary: | [GSS](6.4.z) JBAS011603: Failed to destroy queue: DLQ: java.lang.IllegalStateException: Cannot access JMS Server, core server is not yet active... | ||||||
---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Miroslav Novak <mnovak> | ||||
Component: | JMS | Assignee: | Petr Jurak <pjurak> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Peter Mackay <pmackay> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.4.0 | CC: | ataylor, bmaxwell, csuconic, jbertram, msochure, pjurak, pmackay, rstancel, sappleto | ||||
Target Milestone: | CR1 | ||||||
Target Release: | EAP 6.4.13 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-02-03 16:43:07 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1386335, 1387698, 1390788 | ||||||
Attachments: |
|
Description
Miroslav Novak
2014-10-31 11:57:28 UTC
Created attachment 952466 [details]
server.log (backup)
To reproduce the problem follow those steps: clone our testsuite from git: git://git.app.eng.bos.redhat.com/jbossqe/eap-tests-hornetq.git Go to eap-tests-hornetq/scripts and run groovy script PrepareServers.groovy with -DEAP_VERSION=6.4.0.DR7 parameter: groovy -DEAP_VERSION=6.4.0.DR7 PrepareServers.groovy (Script will prepare 4 servers - server1..4 in the directory where are you currently standing.) Export these paths to server directories + directory for shared journal and mcast addresse.: export JBOSS_HOME_1=$PWD/server1/jboss-eap export JBOSS_HOME_2=$PWD/server2/jboss-eap export JBOSS_HOME_3=$PWD/server3/jboss-eap export JBOSS_HOME_4=$PWD/server4/jboss-eap export MCAST_ADDR=235.3.4.5 And finally: go to jboss-hornetq-testsuite/ in our testsuite and run mvn clean test -Darquillian.xml=arquillian-4-nodes.xml -Peap6x -Dtest=ReplicatedDedicatedFailoverTestCase#testFailbackTransAckQueue Test does not fail! Only way to is to check server.log of server2 which is the replicated backup. This looks like a classic race condition. When org.jboss.as.messaging.jms.JMSQueueService invokes org.hornetq.jms.server.impl.JMSServerManagerImpl.removeQueueFromJNDI the method checks to see if the broker is active (which it is). However, by the time it reaches the next check the broker isn't active anymore and so the exception is thrown. It looks like the JMSQueueService is working in its own thread while another thread has stopped the broker. I'm no expert on the messaging subsystem, but it seems to me these threads should coordinate with each other somehow to avoid this race. I am not seeing the exception anymore with EAP 6.4.13.CP.CR2. Verified. Released with EAP 6.4.13 on Feb 02 2017. |