Skip to content

fix(transaction): rebase staged row updates on disjoint writes - #11419

Open
jackylee-ch wants to merge 1 commit into
lance-format:mainfrom
jackylee-ch:fix/staged-merge-row-conflicts
Open

jackylee-ch wants to merge 1 commit into
lance-format:mainfrom
jackylee-ch:fix/staged-merge-row-conflicts

Conversation

@jackylee-ch

Copy link
Copy Markdown
Contributor

A worker stages a merge of row 2 and another writer updates row 1 in the same fragment. Committing the serialized transaction from a separate process then raises a conflict. A direct merge preserves both writes.

After the existing conflict checks, the Rust commit path recovers the staged row offsets from the deletion vectors of overlapping fragments. It verifies the physical bounds, fragment metadata and intervening deletion changes before rebasing. Updates to the same row still conflict. This covers named updates against named updates and deletes. Mixed and action-set operations are tracked in #10479.

Testing

The Rust release selection passed 326 tests with two ignored, including new cases for a lost commit race and an intermediate undelete. All 12 public Python controls and 101 existing merge-insert tests passed. The separate-process disjoint-row control reproduced the conflict on the base.

Strict workspace Clippy passed on x86_64 macOS. On arm64 it stops on two existing unreachable expressions in byte_stream_split.rs at lines 358 and 393.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-actions github-actions Bot added the bug Something isn't working label Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

@jackylee-ch

Copy link
Copy Markdown
Contributor Author

The four failing Rust jobs report E0063 at ivf/v2/tests.rs:6553, where the HNSW test fixture omits rq_graph_scoring. The PR test build and the base branch build show the same error. #11416 and #11418 both address that fixture.

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Gate recommendation: approve.

The staged-update recovery preserves disjoint writes and same-row conflicts across serialization and commit retries.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant