Skip to content

rgw/s3vectors: fix backend error handling - #71377

Closed
yuvalif wants to merge 2 commits into
ceph:wip-s3vectorfrom
yuvalif:wip-yuval-fix-creation-atomicity
Closed

yuvalif wants to merge 2 commits into
ceph:wip-s3vectorfrom
yuvalif:wip-yuval-fix-creation-atomicity

Conversation

@yuvalif

@yuvalif yuvalif commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor
  • using let table creation API return an error code lancedb/lancedb-c#68 to allow for -ENOENT to be returned from table opening
  • CreateVectorBucket: verify the backend before creating the bucket metadata, so a failed request leaves nothing behind. Non-ENOENT load errors now fail the request
  • DeleteVectorBucket: -ENOENT from the backend is not an error — the metadata is deleted and the operation succeeds. so a bucket whose backend is gone can't get stuck.
  • ListIndexes: -ENOENT from the backend returns an empty list. so, listing before deletion would work even in case that DeleteVectorBucket was called and failed o nthe metadata
  • DeleteIndex: no -ENOENT tolerance, so a missing index returns 404 - to be spec complient

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@yuvalif
yuvalif requested a review from soumyakoduri August 27, 2026 09:28
@yuvalif
yuvalif requested a review from a team as a code owner August 27, 2026 09:28
@yuvalif
yuvalif force-pushed the wip-yuval-fix-creation-atomicity branch from 164a6fa to 6ffb4d1 Compare August 27, 2026 09:30
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

- using lancedb/lancedb-c#68 to allow for -ENOENT to be returned from table opening
- `CreateVectorBucket`: verify the backend before creating the bucket metadata,
  so a failed request leaves nothing behind. Non-ENOENT load errors now fail the request
- `DeleteVectorBucket`: -ENOENT from the backend is not an error — the metadata is deleted and the operation succeeds.
   so a bucket whose backend is gone can't get stuck.
- `ListIndexes`: -ENOENT from the backend returns an empty list. so, listing before deletion
  would work even in case that DeleteVectorBucket was called and failed o nthe metadata
- `DeleteIndex`: no -ENOENT tolerance, so a missing index returns 404 - to be spec complient

Signed-off-by: Yuval Lifshitz <[email protected]>
Assisted-by: claude-code:claude-opus-5
adding md5 and higher resolution mtime
to identify an index that was deleted and recreated
in the same second

Signed-off-by: Yuval Lifshitz <[email protected]>
Assisted-by: claude-code:claude-opus-5
@yuvalif
yuvalif force-pushed the wip-yuval-fix-creation-atomicity branch from df8a119 to 4d67c9d Compare September 9, 2026 10:09
@yuvalif

yuvalif commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

cherry picked to wip-s3vector

@yuvalif yuvalif closed this Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants