Skip to content

Throw a better exception in Azure FS createOrOverwrite#22884

Merged
wendigo merged 1 commit intotrinodb:masterfrom
nineinchnick:azure-better-exception
Jul 31, 2024
Merged

Throw a better exception in Azure FS createOrOverwrite#22884
wendigo merged 1 commit intotrinodb:masterfrom
nineinchnick:azure-better-exception

Conversation

@nineinchnick
Copy link
Copy Markdown
Member

Description

Throw FileNotFoundException instead of a BlobStorageException, since the latter doesn't extend IOException. This addresses a test failure missed in 1073b08.

Follow-up to #22858

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

Throw FileNotFoundException instead of a BlobStorageException, since the
latter doesn't extend IOException. This addresses a test failure missed
in 1073b08.
@cla-bot cla-bot bot added the cla-signed label Jul 31, 2024
@nineinchnick nineinchnick requested review from ebyhr and wendigo July 31, 2024 07:54
@nineinchnick
Copy link
Copy Markdown
Member Author

@ebyhr I'm running tests locally, but please also schedule tests with secrets.

@ebyhr
Copy link
Copy Markdown
Member

ebyhr commented Jul 31, 2024

/test-with-secrets sha=d50fd463ff3897ce6fb53b2913ef3f658aeac9ac

@github-actions
Copy link
Copy Markdown

The CI workflow run with tests that require additional secrets has been started: https://github.com/trinodb/trino/actions/runs/10176309987

@nineinchnick
Copy link
Copy Markdown
Member Author

Tests passed locally, I ran ./mvnw clean install -pl ':trino-filesystem-azure' -Pcloud-tests and got:

[INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 207.3 s -- in io.trino.filesystem.azure.TestAzureFileSystemGen2Hierarchical

@nineinchnick
Copy link
Copy Markdown
Member Author

@wendigo wendigo merged commit f994d4a into trinodb:master Jul 31, 2024
@wendigo
Copy link
Copy Markdown
Contributor

wendigo commented Jul 31, 2024

Thanks @nineinchnick !

@github-actions github-actions bot added this to the 454 milestone Jul 31, 2024
@nineinchnick nineinchnick deleted the azure-better-exception branch August 6, 2024 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants