Skip to content

fix: isolate transaction files for every commit attempt - #11658

Closed
lance-gatefixer[bot] wants to merge 1 commit into
mainfrom
gatekeeper/fix-11656-1
Closed

lance-gatefixer[bot] wants to merge 1 commit into
mainfrom
gatekeeper/fix-11656-1

Conversation

@lance-gatefixer

Copy link
Copy Markdown
Contributor

Resubmitting an unkeyed transaction reused <read_version>-<transaction.uuid>.txn. Cleanup after a conclusively failed resubmission could delete the file still referenced by a committed version, breaking transaction reads and stale-writer catch-up.

Generate a fresh attempt UUID when write_transaction_file receives no explicit attempt ID. Existing keyed-append attempt IDs and the serialized transaction UUID are preserved; readers continue to use the path in the manifest.

The regression covers attached and detached commits on a multi-fragment table, forces the transaction to spill, then forces publication of the resubmission to fail. It verifies that the committed transaction remains readable from storage and that an attached stale writer can load the committed history. Both cases failed with NotFound before the fix.

Validation:

  • cargo test --profile ci -p lance-table-runtime --lib --features tokio/test-util: 574 passed.
  • cargo fmt --all and cargo fmt --all --check.
  • cargo clippy --all --tests --benches -- -D warnings.

Fixes #11656

@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 repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@github-actions github-actions Bot added critical-fix Bugs that cause crashes, security vulnerabilities, or incorrect data. bug Something isn't working labels Nov 30, 2026

@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.

This addresses the committed-record deletion in #11656 while preserving the manifest-based reader contract.

#11657 contains the same core fix; only one of these overlapping changes needs to land.

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

@Xuanwo Xuanwo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[AI] Before retiring this PR, could we carry standalone_failed_resubmission_preserves_committed_transaction into #11657? Its current test checks that the attached transaction file still exists. The test here forces an external file, reads back both attached and detached transactions after a failed resubmission, and verifies that a stale writer can still read the attached transaction history.

@lance-gatefixer

Copy link
Copy Markdown
Contributor Author

Blocked: transferring the requested regression into #11657 requires an update to that PR's branch, outside this assigned repair.

The review asks to preserve the stronger regression before retiring this PR. At this PR's remote head 2866ad82d555fb61959b24ede3ae32d6def29ad8, the regression is already committed: it forces external transaction storage, reads back attached and detached transactions after failed resubmission, and checks stale-writer history catch-up. It passed with all 574 runtime unit tests.

I compared #11657 at 99fd24d7595587d28016739c0df0df1945e9f12a; it still contains only the attached transaction-file existence test. This FixAgent can update only #11658 on gatekeeper/fix-11656-1.

The smallest next step is for #11657's author or a maintainer to copy the linked regression into #11657, validate it there, and confirm here. Alternatively, retain #11658 as the repair so this coverage lands with the fix.

@westonpace

Copy link
Copy Markdown
Member

I've ported the test to #11657

@westonpace

Copy link
Copy Markdown
Member

Superseded by #11657

@westonpace westonpace closed this Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working critical-fix Bugs that cause crashes, security vulnerabilities, or incorrect data. K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: failed resubmission of a committed transaction deletes its transaction file

2 participants