You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "jihuayu (via GitHub)" <gi...@apache.org> on 2024/02/04 00:37:48 UTC

[PR] feat(services/s3): Add rename support for s3 service [opendal]

jihuayu opened a new pull request, #4136:
URL: https://github.com/apache/opendal/pull/4136

   I add rename support for the s3 service.
   Because s3 doesn't have the native rename API, so we need to copy first and delete the old file.
   I also added the rollback logic when we delete the old file failed.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(services/s3): Add rename support for s3 service [opendal]

Posted by "jihuayu (via GitHub)" <gi...@apache.org>.
jihuayu closed pull request #4136: feat(services/s3): Add rename support for s3 service
URL: https://github.com/apache/opendal/pull/4136


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(services/s3): Add rename support for s3 service [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on PR #4136:
URL: https://github.com/apache/opendal/pull/4136#issuecomment-1925556336

   > Do we treat it as the default behavior? Or do we need to add a flag to indicate the use of simulation?
   
   We mark this different via [full_capability](https://opendal.apache.org/docs/rust/opendal/struct.OperatorInfo.html#method.full_capability) and [native_capability](https://opendal.apache.org/docs/rust/opendal/struct.OperatorInfo.html#method.native_capability)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(services/s3): Add rename support for s3 service [opendal]

Posted by "jihuayu (via GitHub)" <gi...@apache.org>.
jihuayu commented on PR #4136:
URL: https://github.com/apache/opendal/pull/4136#issuecomment-1925553798

   > Would you like to implement the simulate logic for rename in CompleteLayer?
   
   I will do it.
   Do we treat it as the default behavior? Or do we need to add a flag to indicate the use of simulation?
   
   > I feel like it's clear enough the s3 doesn't support rename.
   
   In our doc, there is no strikethrough in the s3 rename capability. But some others service has a strikethrough.
   I think this could lead to misunderstandings that we simply do not currently support S3 rename operations temporarily.
   So, I think we need to add a strikethrough to the s3 rename capability.
   ![image](https://github.com/apache/opendal/assets/32858525/90d68c2a-0806-442b-bbe2-296ee55d6fd2)
   ![image](https://github.com/apache/opendal/assets/32858525/6c66e7dc-655d-41bd-aef4-1dbb764cd719)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(services/s3): Add rename support for s3 service [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on PR #4136:
URL: https://github.com/apache/opendal/pull/4136#issuecomment-1925522473

   Thanks for the PR. The capacity in backends is used to hint features that storage services support natively.
   
   We don't need to implement rename in backend as we can do it at operator level.
   
   For example: send rename if it's natively supported, otherwise fallback to copy and delete.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(services/s3): Add rename support for s3 service [opendal]

Posted by "jihuayu (via GitHub)" <gi...@apache.org>.
jihuayu commented on PR #4136:
URL: https://github.com/apache/opendal/pull/4136#issuecomment-1925504822

   It seems like CI fail in main. I will re-open this PR after the CI passes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(services/s3): Add rename support for s3 service [opendal]

Posted by "jihuayu (via GitHub)" <gi...@apache.org>.
jihuayu commented on PR #4136:
URL: https://github.com/apache/opendal/pull/4136#issuecomment-1925528585

   > Thanks for the PR. The capacity in backends is used to hint features that storage services support natively.
   > 
   > We don't need to implement rename in backend as we can do it at operator level.
   > 
   > For example: send rename if it's natively supported, otherwise fallback to copy and delete.
   
   OK, I will close this PR. Do we need to update the documentation to indicate that we do not support the rename operation for S3?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(services/s3): Add rename support for s3 service [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on PR #4136:
URL: https://github.com/apache/opendal/pull/4136#issuecomment-1925552060

   > Do we need to update the documentation to indicate that we do not support the rename operation for S3?
   
   I feel like it's clear enough the s3 doesn't support rename.
   
   > OK, I will close this PR
   
   Would you like to implement the simulate logic for rename in `CompleteLayer`?
   
   https://github.com/apache/opendal/blob/0f316b40581a1c07a14249644f6e26fd8b17f1da/core/src/layers/complete.rs#L556-L563


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org