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

Handle "NotSupported" status by default implementation of Close() in … #10127

Conversation

littlepig2013
Copy link
Contributor

Summary:

The default implementation of Close() function in Directory/FSDirectory classes returns NotSupported status. However, we don't want operations that worked in older versions to begin failing after upgrading when run on FileSystems that have not implemented Directory::Close() yet. So we require the upper level that calls Close() function should properly handle "NotSupported" status instead of treating it as an error status.

Copy link
Contributor

@ajkr ajkr left a comment

Choose a reason for hiding this comment

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

LGTM!

@littlepig2013 littlepig2013 force-pushed the handle_not_supported_dir_close branch from b665002 to a1162e4 Compare June 7, 2022 00:10
@littlepig2013 littlepig2013 force-pushed the handle_not_supported_dir_close branch from a1162e4 to bf82eec Compare June 7, 2022 03:30
@facebook-github-bot
Copy link
Contributor

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

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.

3 participants