Skip to content

fix(tables): a commit to a table that was soft-dropped meanwhile gets 404 - #2251

Merged
c-thiel merged 1 commit into
mainfrom
ct/commit-soft-dropped-table
Nov 5, 2026
Merged

c-thiel merged 1 commit into
mainfrom
ct/commit-soft-dropped-table

Conversation

@c-thiel

@c-thiel c-thiel commented Nov 5, 2026

Copy link
Copy Markdown
Member

A table commit locks the table rows before it writes. This lock also took soft-deleted tables, and a soft delete keeps the metadata location. So a commit that loaded the table before a concurrent soft delete succeeded with 200 and changed the deleted table. The lock now skips soft-deleted tables, and such a commit gets 404, like a commit to a table that was dropped for good. View commits already skip soft-deleted views.

Release notes

  • A commit to a table that was soft-deleted in the meantime gets "table not found". Before, the commit succeeded and changed the deleted table.

… 404

The commit lock now skips soft-deleted tables. A soft drop keeps the metadata location, so a commit that loaded the table before a concurrent soft drop succeeded and changed the dropped table.
@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 9 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3b9b8d46-015e-440f-856b-97943111dae0
Commits

Reviewing files that changed from the base of the PR and between 800fee6 and 0dfbcdc.

Files ignored due to path filters: 1

  • .sqlx/query-9dad57621e9483ff890e6ef5f67d0ccaa27e76e576891bafeeff947bcc9d9f8d.json is excluded by !.sqlx/**
Files selected for processing: 1

  • crates/lakekeeper-storage-postgres/src/tabular/table/commit.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

✅ PR Title Formatted Correctly

The title of this PR match the correct format. Thank you!

@c-thiel
c-thiel merged commit 4c3fd92 into main Nov 5, 2026
76 checks passed
@c-thiel
c-thiel deleted the ct/commit-soft-dropped-table branch November 5, 2026 20:25
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.

1 participant