Skip to content

fix(multi_update): abort incomplete S3 tombstones - #29343

Merged
XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/issue-29256-s3-delete-append
Sep 24, 2026
Merged

XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/issue-29256-s3-delete-append

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • BUG

Which issue(s) this PR fixes:

Fixes #29256

What this PR does / why we need it:

Treat each S3 tombstone (rowid, PK) append as a row-level transaction. Return either allocation error, roll back both vector checkpoints (including partial varlen PK appends), and mark the deduplication bitmap only after a complete pair is committed. Clean temporary collected batches if a later BatchSet merge fails. Previously DELETE/UPDATE could report success with missing tombstones.

A capped-MPool regression reproduced silent success on main for rowid and PK failures. It now covers rowid, fixed PK and varlen PK-area failures, followed by retry and deduplication. Full multi_update and downstream mergeblock package tests, build, vet, and scoped golangci-lint passed.

@XuPeng-SH
XuPeng-SH requested a review from aptend as a code owner September 24, 2026 10:26
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed current head f5d2070 against main and merge-base 2f25834. No blocking findings. Checked rowid/PK append rollback, delayed dedup publication, BatchSet failure ownership, and reset/free paths. The focused allocation-failure regression and successful exact-head CI run 35987212562 support this fix. COMMENT only because this is self-authored.

@XuPeng-SH
XuPeng-SH merged commit 6397d6b into matrixorigin:main Sep 24, 2026
17 of 18 checks passed
@XuPeng-SH
XuPeng-SH deleted the codex/issue-29256-s3-delete-append branch September 24, 2026 12:37

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: multi_update S3 delete flush drops tombstone rows when off-heap append fails and still returns success

2 participants