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

Does AWS S3 support conditional put? #218

Closed
kevin-wyx opened this issue Apr 4, 2018 · 2 comments
Closed

Does AWS S3 support conditional put? #218

kevin-wyx opened this issue Apr 4, 2018 · 2 comments

Comments

@kevin-wyx
Copy link

I am testing OpenStack Swift using s3-tests, all cases about conditional put/update output FAIL/ERROR.

Like: s3tests.functional.test_s3.test_put_object_ifmatch_good

Then I test conditional put with AWS S3, it raises NotImplemented error.

./s3curl/s3curl.pl --id test  --   http://testbucket.s3-ap-southeast-1.amazonaws.com/aaa -X PUT  --data @/tmp/aaa  -H 'If-Match: abc'
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>NotImplemented</Code><Message>A header you provided implies functionality that is not implemented</Message><Header>If-Match</Header><RequestId>301498F0A024E98Q</RequestId><HostId>Yd9JPz7BG8ixUiSCtVOSl90fGjqNtxH45WJa0hb+bli6x88TNjyxhzVFxRI6CHjHDA6GR8cIE8Y=</HostId></Error>

Does S3 not actually support conditional put?

@gaul
Copy link
Contributor

gaul commented Apr 4, 2018

Conditional PUT is a Ceph extension. AWS S3 cannot support this due to eventually consistency.

@kevin-wyx
Copy link
Author

Thanks, @gaul.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants