Repository navigation
fix: isolate transaction files for every commit attempt - #11658
lance-gatefixer[bot] wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
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.
Xuanwo
left a comment
There was a problem hiding this comment.
[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.
|
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 I compared #11657 at 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. |
|
I've ported the test to #11657 |
|
Superseded by #11657 |
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_filereceives 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
NotFoundbefore the fix.Validation:
cargo test --profile ci -p lance-table-runtime --lib --features tokio/test-util: 574 passed.cargo fmt --allandcargo fmt --all --check.cargo clippy --all --tests --benches -- -D warnings.Fixes #11656