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
{{ message }}
Repository navigation
[Bug] A successful cursor reset keeps hiding the batch indexes of committed transactional ACKs on the live owner #27752
After a seek, the owner broker keeps hiding batch indexes that committed transactions acknowledged, while a restarted owner delivers them again.
After a partial-batch transactional ACK commits, PendingAckHandleImpl.individualAckCommitCommon removes only the transaction's entry in individualAckOfTransaction. individualAckPositions, which holds the merged batch masks, is cleared only when the whole entry is deleted (PersistentSubscription.acknowledgeMessage → clearIndividualPosition). The reset path never touches it, and AbstractBaseDispatcher.filterEntriesForConsumer still applies that mask to dispatched entries. A restarted owner rebuilds the masks from the ACKs still pending, so it delivers the index.
Error messages
None.
Reproducing the issue
Produce a batched entry of 4 messages to a topic with a Shared subscription.
Acknowledge batch index 0 in a transaction and commit it.
Seek the subscription to earliest.
Reconnect a consumer to the same owner broker: index 0 is not delivered. After an owner restart, it is.
Additional information
A successful reset should drop the committed positions from individualAckPositions and keep only the indexes still reserved by OPEN transactions. The merged mask has to be rebuilt from those transactions' ACKs rather than cleared.
Activity