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(core): add if-match to OpWrite #5360

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Frank-III
Copy link
Contributor

Which issue does this PR close?

Closes #5359. similar to what has been done in #5305, please review the code🙏

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

Add op.write_with(path, content).if_match("<etag>")

Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you @Frank-III for working on this!

core/src/raw/ops.rs Show resolved Hide resolved
core/src/types/operator/operator.rs Outdated Show resolved Hide resolved
core/src/types/operator/operator.rs Outdated Show resolved Hide resolved
core/tests/behavior/async_write.rs Show resolved Hide resolved
core/tests/behavior/async_write.rs Outdated Show resolved Hide resolved
@Frank-III
Copy link
Contributor Author

thanks for the review! would fix soon

@Frank-III Frank-III marked this pull request as draft November 27, 2024 03:56
@Frank-III Frank-III marked this pull request as ready for review November 27, 2024 14:28
@Xuanwo
Copy link
Member

Xuanwo commented Nov 28, 2024

Seems ceph rados s3 doesn't support write_with_if_match. Let's add a new config for s3 called disable_write_with_if_match and only enable it for ceph rados s3.

hdfs related error is not related to this PR.

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.

new feature: AWS S3 now supports if-match
2 participants