mattrpav opened a new pull request, #2806:
URL: https://github.com/apache/activemq/pull/2806

   When multiple consumers share a durable subscription and ack messages out of 
order, a blind overwrite of LastAck can move the ack position backward. On 
restart, the recovery cursor replays already-acked messages. Check the update 
with a forward-only check so LastAck only advances.
   
   Test demonstrates recovery cost when lastAckedSequence regresses due to 
blind overwrite during out-of-order acks. Two durable subscriptions share a 
topic; the fast subscription acks 499 of 500 messages in reverse order. Without 
the forward-only guard in MessageDatabase, lastAck regresses to sequence 1 and 
recovery scans all 499 entries.
   
   Note: this impacts non-shared subscriptions as well


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to