OpenSearch/plugins/repository-s3
Yannick Welsch 515a23360d
Do not check for S3 blob to exist before writing (#31128)
In #19749 an extra check was added before writing each blob to ensure that we would not be
overriding an existing blob. Due to S3's weak consistency model, this check was best effort. To
make matters worse, however, this resulted in a HEAD request to be done before every PUT, in
particular also when PUTTING a new object. The approach taken in #19749 worsened our
consistency guarantees for follow-up snapshot actions, as it made it less likely for new files that
had been written to be available for reads.

This commit therefore removes this extra check. Due to the weak consistency model, this check
was a best effort thing anyway, and there's currently no way to prevent accidental overrides on S3.
2018-06-06 16:38:06 +02:00
..
config/repository-s3 Fix logging configuration for AwsSdkMetrics logger 2016-10-14 23:44:39 -04:00
licenses Upgrade AWS SDK Jackson Databind to 2.6.7.1 2017-11-13 12:05:14 -05:00
qa Move repository-s3 fixture tests to QA test project (#29372) 2018-04-27 16:49:06 +02:00
src Do not check for S3 blob to exist before writing (#31128) 2018-06-06 16:38:06 +02:00
build.gradle Move repository-s3 fixture tests to QA test project (#29372) 2018-04-27 16:49:06 +02:00