Repository navigation
fix(duckdb): accept missing-bucket error in AttachNotExistS3RemoteDB - #146
Merged
Merged
Conversation
The duckdb-blobs S3 bucket no longer exists (S3 returns NoSuchBucket), so ATTACH of the non-existent stations1.duckdb now fails with 'IO Error: Cannot open database ... in read-only mode: database does not exist' instead of the old 'HTTP GET error ... HTTP 403 Forbidden'. Broaden the expected-error regex to require the S3 path but accept either message.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AttachNotExistS3RemoteDBfails in CI (e.g. LadybugDB/ladybug run 43382796174, and the scheduled main run 43407824107):HTTP GET error reading 's3://duckdb-blobs/...' (HTTP 403 Forbidden)IO Error: Cannot open database "s3://duckdb-blobs/databases/stations1.duckdb" in read-only mode: database does not existThe external
duckdb-blobsS3 bucket no longer exists (NoSuchBucketon direct HTTPS checks), so S3 reports a missing bucket instead of a missing key, which DuckDB surfaces as "database does not exist".Change
Broaden the expected-error regex in
duckdb/test/test_files/remote_duckdb.testto require the S3 path but accept either message:^.+ Error:[\s\S]*s3://duckdb-blobs/databases/stations1\\.duckdb[\s\S]*$Verified it matches both the old 403 error and the new missing-bucket error. The sibling
AttachPublicS3Duckdbcase staysSKIPped.