Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw kFileNotFound in all storage adapters #8662

Closed

Conversation

zhli1142015
Copy link
Contributor

No description provided.

Copy link

netlify bot commented Feb 2, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit d86785d
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/65c0bb7c67e2d20008916085

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 2, 2024
@zhli1142015
Copy link
Contributor Author

@majetideepak and @mbasmanova , could you please help to review this PR? This PR is the follow up of #8615 to make sure all remote storage adapters have same error interface for file not found error.
Thanks.

Copy link
Collaborator

@majetideepak majetideepak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhli1142015 Can we retain the existing checks for the error message?
Adding a new check for the error code should suffice.

@mbasmanova mbasmanova changed the title Throw error with kFileNotFound to indicate file not found for all storage adapters Throw kFileNotFound in all storage adapters Feb 5, 2024
@@ -81,6 +81,7 @@ Storage Adapters
~~~~~~~~~~~~~~~~
Hive Connector allows reading and writing files from a variety of distributed storage systems.
The supported storage API are S3, HDFS, GCS, Linux FS.
If file is not found when reading, `openFileForRead` API throws `VeloxRuntimeError` with `error_code::kFileNotFound`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's clarify that this behavior is necessary to support xxx configuration property.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, thanks.

Copy link
Collaborator

@majetideepak majetideepak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good to me.

Copy link
Contributor

@mbasmanova mbasmanova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@facebook-github-bot
Copy link
Contributor

@mbasmanova has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@mbasmanova
Copy link
Contributor

Got a linter warning:

Screenshot 2024-02-05 at 11 41 09 AM

CC: @majetideepak

@facebook-github-bot
Copy link
Contributor

@mbasmanova merged this pull request in 3c5d864.

Copy link

Conbench analyzed the 1 benchmark run on commit 3c5d8647.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

FelixYBW pushed a commit to FelixYBW/velox that referenced this pull request Feb 12, 2024
Summary: Pull Request resolved: facebookincubator#8662

Reviewed By: pedroerp

Differential Revision: D53416855

Pulled By: mbasmanova

fbshipit-source-id: 7f0b7e475d7725ae98ce0a6ca6eb03130bbbea57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants