[ https://issues.apache.org/jira/browse/QPID-3867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216965#comment-13216965 ]
Rob Godfrey commented on QPID-3867: ----------------------------------- I guess my issue is that the API on AMQQueue feels fairly "unnatural"... it's clearly bolted on to support a particular function of the MBean rather than naturally being something the Queue would expose, and we should probably be doing our best to simplify AMQQueue. In that sense I feel like actually the functionality should be moved into a third-party class (including the management of the transaction). The API on AMQQueue should potentially just be the ability to acquire a set of messages matching a filter. In that sense I think the change to make the subject queue manage the transaction is suspect. This is possibly worth a separate JIRA though. > AMQQueueMBean#clearQueue|moveMessages|copyMessages should be certain to > rollback transactions in the event of exception > ----------------------------------------------------------------------------------------------------------------------- > > Key: QPID-3867 > URL: https://issues.apache.org/jira/browse/QPID-3867 > Project: Qpid > Issue Type: Bug > Components: Java Broker > Affects Versions: 0.15 > Reporter: Keith Wall > Assignee: Robbie Gemmell > Priority: Critical > > AMQQueueMBean#clearQueue|moveMessages|copyMessages all leave open that > possibility that a LocalTransaction goes uncommitted (or unrolledback) in the > event of exception. > This will lead to uncontrolled store growth when used with BDB as would block > the action of the cleaner thread. > A finally block should be used to ensure that transaction is rolled back on > any exception. > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:dev-subscr...@qpid.apache.org