congbobo184 commented on PR #17318: URL: https://github.com/apache/pulsar/pull/17318#issuecomment-1252018265
@shibd yes, if the user use multi-thread call receive and redeliverUnacknowledgedMessages, we also can receive old epoch messages. in the most cast, use redeliverUnacknowledgedMessages for cumulative ack, so the user should receive and redeliverUnacknowledgedMessages in the same thread. So we only need to ensure that the message offered to queue and redeliverUnacknowledgedMessages are mutually exclusive. you can use the same thread or lock to implement it -- 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]
