Skip to content

fix(2pc): commit auto 2pc transaction on multi-shard insert after split - #1910

Merged
meskill merged 1 commit into
mainfrom
meskill-2026-10-27-fix-2pc---wolx
Oct 27, 2026
Merged

meskill merged 1 commit into
mainfrom
meskill-2026-10-27-fix-2pc---wolx

Conversation

@meskill

@meskill meskill commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Fix the issue with 2pc with auto when the cross-shard multi-row insert was not actually committing the transaction.

fixes #1901

The fix is to in the InsertMulti track the actual transaction state from the backend servers instead of relying on context (context doesn't have the transaction in progress if it was not started explicitly).

@codecov

codecov Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@meskill
meskill merged commit b17238d into main Oct 27, 2026
56 of 58 checks passed
@meskill
meskill deleted the meskill-2026-10-27-fix-2pc---wolx branch October 27, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cross-shard multi-row INSERT reports success but persists no rows with two_phase_commit_auto + split_inserts = "rewrite"

1 participant