Repository navigation
[fix][ml] Preserve individual batch ACKs when merging cumulative ACKs - #26998
Conversation
codelipenghui
left a comment
There was a problem hiding this comment.
Reviewed at 67db263. No actionable findings identified within the reviewed scope.
The AND merge preserves both individual and cumulative batch ACKs, and the shared cursor lock correctly protects the mutable bitmap updates.
Validation with retries disabled: all 19 selected test invocations passed. Temporarily restoring the pre-fix helper reproduced the overlap regression (mask 12 instead of 8); after restoring the PR source, all four new regression cases passed again. The baseline stopped at its first expected failure.
LGTM, subject to required CI passing.
|
@Denovo1998 There's some remaining gaps in this area. Here are some findings from Claude. Would you like to pick this up?
|
Follow-up to #26765.
Motivation
With batch-index acknowledgment enabled, a cumulative ACK can replace the cursor's bitmap and restore indexes already acknowledged individually. For example, merging pending masks
7and12stores12instead of4. The cumulative path also updates mutable bitmaps before acquiring the cursor write lock, allowing it to race with individual ACK processing. Lost ACK state can cause acknowledged messages to be redelivered, including after cursor recovery.Modifications
Verifying this change
This change added tests in
ManagedCursorBatchAckRecoveryTest. All four new test invocations fail on the unpatched code. On the final code, all 19 selected test invocations passed with retries disabled.quickCheckandgit diff --checkalso passed.These results are from local validation; CI has not run for this change.
Does this pull request potentially affect one of the following parts:
Cumulative batch bitmap updates now acquire the existing cursor write lock used by individual ACK processing.