OpenSearch/plugins/repository-s3
Tanguy Leroux 8fa06294ab
Do not check for object existence when deleting repository index files (#31680)
Before deleting a repository index generation file, BlobStoreRepository
checks for the existence of the file and then deletes it. We can save
a request here by using BlobContainer.deleteBlobIgnoringIfNotExists()
 which ignores error when deleting a file that does not exist.

Since there is no way with S3 to know if a non versioned file existed
before being deleted, this pull request also changes S3BlobContainer so
that it now implements deleteBlobIgnoringIfNotExists(). It will now save
 one more request (blobExist?) when appropriate. The tests and fixture
 have been modified to conform the S3 API that always returns a 204/NO
 CONTENT HTTP response on deletions.
2018-06-29 14:15:34 +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 Do not check for object existence when deleting repository index files (#31680) 2018-06-29 14:15:34 +02:00
src Do not check for object existence when deleting repository index files (#31680) 2018-06-29 14:15:34 +02:00
build.gradle Reload secure settings for plugins (#31383) 2018-06-18 09:42:11 +03:00