[ https://issues.apache.org/jira/browse/QPID-4263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450928#comment-13450928 ]
Alan Conway edited comment on QPID-4263 at 9/8/12 7:05 AM: ----------------------------------------------------------- MessageDeque::setPosition only erases messages *after* the position. According to the precondition for setPosition, there cannot be any un-deleted messages after the position so this is OK. was (Author: aconway): MessageDeque::setPosition(n) only erases messages *after* n. According to the precondition for setPosition, there cannot be any un-deleted messages after n so this is OK. > HA broker can crash due to priority queue corruption > ---------------------------------------------------- > > Key: QPID-4263 > URL: https://issues.apache.org/jira/browse/QPID-4263 > Project: Qpid > Issue Type: Bug > Components: C++ Broker > Affects Versions: 0.18 > Reporter: Jason Dillaman > Assignee: Alan Conway > > Similar to QPID-4262 and discovered via code review while investigating the > other issue, it appears that it is possible for the priority queue's > "messages" deques to become out-of-sync with their backing "fifo" deque if > "PriorityQueue::setPosition" is invoked. That method will delete messages > from the backing MessageDeque collection without removing the pointers to the > deleted messages from the PriorityQueue. > The HA and replication plugins can both invoke this method on a queue. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org