OpenSearch/server
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
..
licenses Upgrade to Lucene 7.4.0. (#31529) 2018-06-22 16:17:17 +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 Remove deprecation warnings to prepare for Gradle 5 (sourceSets.main.output.classesDirs) (#30389) 2018-06-28 15:14:34 +03:00