[ 
https://issues.apache.org/jira/browse/AMQ-9773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18022818#comment-18022818
 ] 

Matt Pavlovich commented on AMQ-9773:
-------------------------------------

The order index sequence key value increases for every message since the 
beginning of the creation of the index, so the first message available won't be 
at sequence key value:0 in the index when there were older messages 
acknowledged.

The MessageOrderCursor _position_ value is relative to the index, so there is a 
disconnect between queue _position_ and index sequence value over time.

The MessageRecoveryContext determines the recovery start position based off the 
provided offset, or the position of the requested startMessageId. If a 
startMessageId is specified, but not found in the index, then the value of 0 is 
used as a fallback.

The MessageRecoveryContext determines the recovery end position based off of 
the provided endMessageId (if provided), or the maximum recovered message 
count, or if the MessageRecoveryListener signals that no more messages should 
be recovered (ie memory is full).

> Backup only recovers one message
> --------------------------------
>
>                 Key: AMQ-9773
>                 URL: https://issues.apache.org/jira/browse/AMQ-9773
>             Project: ActiveMQ Classic
>          Issue Type: Bug
>            Reporter: Matt Pavlovich
>            Assignee: Matt Pavlovich
>            Priority: Minor
>             Fix For: 6.2.0, 5.19.1, 6.1.8
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
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