You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
example:
Transaction abort message1, message2 and then clear incomingMessages.
after incomingMessage cleared the message3 can add in incomingMessages. This time we cumulativeAck message3 with txn will lose message1 and message2.
It not a transaction bug, now normal cumulative ack will produce race condition.
consumer pull request and clear incomming queue is not synchronized
when clear completed, we don't send redeliverCommond to server, this time consumer receive MessageCommand the incomming queue will add new message, the messageId may more than the old messageId whtich you don't cumulative ack. then you cumulative ack this new messageId, the old messageID will lost.
may we should add an epoch for every messageCommand, when invoke redeliverUnacknowledgedMessages, we can add the epoch and refuse the messageCommand which is smaller than current consumer epoch.
The text was updated successfully, but these errors were encountered:
example:
Transaction abort message1, message2 and then clear incomingMessages.
after incomingMessage cleared the message3 can add in incomingMessages. This time we cumulativeAck message3 with txn will lose message1 and message2.
It not a transaction bug, now normal cumulative ack will produce race condition.
consumer pull request and clear incomming queue is not synchronized
when clear completed, we don't send
redeliverCommond
to server, this time consumer receiveMessageCommand
the incomming queue will add new message, the messageId may more than the old messageId whtich you don't cumulative ack. then you cumulative ack this new messageId, the old messageID will lost.may we should add an epoch for every messageCommand, when invoke
redeliverUnacknowledgedMessages
, we can add the epoch and refuse themessageCommand
which is smaller than current consumer epoch.The text was updated successfully, but these errors were encountered: