[fix][broker] Defer ack state updates until persistence succeeds#25528
[fix][broker] Defer ack state updates until persistence succeeds#25528nodece wants to merge 3 commits intoapache:masterfrom
Conversation
|
Will the broker stop dispatch messages to the consumer if the consumer has been set to a lower max unack message and the persistence interval of the cursor set to a higher value? |
|
The broker should not stop dispatching messages just because In this implementation, For the normal path, the ack immediately triggers async mark-delete/delete persistence, so it does not wait for
|
21fe8ef to
b6b33f1
Compare
b6b33f1 to
65f7a2a
Compare
Motivation
The broker ack path was updating consumer-side in-memory ack state before the underlying subscription ack path had fully completed. That makes ack failures harder to reason about and can leave broker-side state transitions out of sync with the persisted ack result and ack-receipt flow.
Changes
ServerCnx