Details
Description
Test scenario:
1. Start two server - live and backup (dedicated topology)
2. Shut down backup server (ctrl-c)
In step 2. backup server throws IllegalStateException to console log:
11:18:51,752 INFO [ServerImpl] JBoss (Microcontainer) [5.1.2 (build: SVNTag=JBPAPP_5_1_2 date=201111102209)] Started in 8s:569ms
11:18:51,828 INFO [HornetQServerImpl] HornetQ Backup Server version 2.2.8.GA (HQ_2_2_10_EAP_GA, 122) [166f851d-3626-11e1-9f49-001b217d6d91] started, waiting live to fail before it gets active
^C11:18:56,234 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
11:18:56,237 WARN [StartStopLifecycleAction] Error during stop for org.hornetq:module=JMS,type=Queue,name="ExpiryQueue"
java.lang.IllegalStateException: Cannot access JMS Server, core server is not yet active
at org.hornetq.jms.server.impl.JMSServerManagerImpl.checkInitialised(JMSServerManagerImpl.java:1399)
at org.hornetq.jms.server.impl.JMSServerManagerImpl.removeQueueFromJNDI(JMSServerManagerImpl.java:618)
at org.jboss.as.integration.hornetq.deployers.pojo.HornetQQueueDeployment.stop(HornetQQueueDeployment.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
... there are many of those exceptions ...
11:19:06,340 WARNING [HornetQServerImpl] Timed out waiting for pool to terminate
11:19:06,343 INFO [HornetQServerImpl] HornetQ Server version 2.2.8.GA (HQ_2_2_10_EAP_GA, 122) [166f851d-3626-11e1-9f49-001b217d6d91] stopped
11:19:06,980 INFO [ServerImpl] Shutdown complete