This content has been marked as final.
Show 4 replies
-
1. Re: I think I found a bug (test script attached to confirm)
timfox Sep 25, 2009 4:43 PM (in response to mr_dronski)Thanks Mr Droski-
Can you add a JIRA and we'll be investigate?
If you can replicate this without using the GoorvyMBean class that would be very helpful, so we can eliminate it from the enquiry. -
2. Re: I think I found a bug (test script attached to confirm)
jmesnil Sep 28, 2009 4:17 AM (in response to mr_dronski)"mr_dronski" wrote:
def hornetServer = new GroovyMBean(server, 'org.hornetq:type=Server,module=JMS')
hornetServer.closeConnectionsForAddress('')
...
def q = new GroovyMBean(server, 'org.hornetq:type=Queue,module=JMS,name="out"')
q.removeMessages('')
==================
In HornetQ 2.0.0.Beta5, the MBeans use underneath a HornetQ connection to handle replication to the backup node.
If you kill all the connections, it will also kill the connection used for management operations replication. Since the management operation can not be properly replicated, the error is reported to the user.
This behavior will change for the final 2.0.0 release. Management operations replication will no longer use a HornetQ connection. Closing all connections will not prevent the management operation to be performed.
But, in the mean time, you're right about the workaround, remove all messages from the queue before closing all the connections.
hope that helps -
3. Re: I think I found a bug (test script attached to confirm)
mr_dronski Sep 28, 2009 12:09 PM (in response to mr_dronski)Thanks Jeff, you confirmed what I suspected about the implementation. Should I still file a JIRA or is this change already in a pipeline?
-
4. Re: I think I found a bug (test script attached to confirm)
jmesnil Sep 29, 2009 3:33 AM (in response to mr_dronski)Yes, it is a good idea to file a JIRA issue to ensure the bug will be correctly fixed and verified for our next release.
thanks,
jeff