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

feat: Implement stat dir correctly based on RFC-3243 List Prefix #3651

Merged
merged 53 commits into from
Nov 23, 2023
Merged

Conversation

Xuanwo
Copy link
Member

@Xuanwo Xuanwo commented Nov 22, 2023

Part of #3247


This PR changed the behavior of stat as described in RFC-3243 List Prefix. In short:

  • We will return file not found if we are trying to stat file abc with abc/.
  • We will handle dir correctly by calling list with prefix.

This change will make sure we return correct dir metadata on s3 alike storage services.


I will update upgrade.md in following PRs since this PR is so large that any single change will trigger all CI to run.

Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
@Xuanwo Xuanwo marked this pull request as draft November 22, 2023 12:10
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
@Xuanwo Xuanwo marked this pull request as ready for review November 23, 2023 05:41
@Xuanwo
Copy link
Member Author

Xuanwo commented Nov 23, 2023

dropbox failed for too_many_write_operations.

Copy link
Member

@suyanhanx suyanhanx left a comment

Choose a reason for hiding this comment

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

This must be a breaking change. Please update the upgrade guide.

core/src/raw/oio/list/api.rs Show resolved Hide resolved
core/tests/behavior/write.rs Show resolved Hide resolved
core/src/types/operator/operator.rs Show resolved Hide resolved
@Xuanwo Xuanwo merged commit 0711e6c into main Nov 23, 2023
216 of 220 checks passed
@Xuanwo Xuanwo deleted the fix-stat branch November 23, 2023 08:27
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.

Invalid metadata for dir objects in s3 is_exist always return true for key end with '/', in S3 service
3 participants