OpenSearch/test/fixtures
Tanguy Leroux f753fa2265 HttpHandlers should return correct list of objects (#49283)
This commit fixes the server side logic of "List Objects" operations
of Azure and S3 fixtures. Until today, the fixtures were returning a "
flat" view of stored objects and were not correctly handling the
delimiter parameter. This causes some objects listing to be wrongly
interpreted by the snapshot deletion logic in Elasticsearch which
relies on the ability to list child containers of BlobContainer (#42653)
to correctly delete stale indices.

As a consequence, the blobs were not correctly deleted from the
 emulated storage service and stayed in heap until they got garbage
collected, causing CI failures like #48978.

This commit fixes the server side logic of Azure and S3 fixture when
listing objects so that it now return correct common blob prefixes as
expected by the snapshot deletion process. It also adds an after-test
check to ensure that tests leave the repository empty (besides the
root index files).

Closes #48978
2019-11-20 09:26:42 +01:00
..
azure-fixture HttpHandlers should return correct list of objects (#49283) 2019-11-20 09:26:42 +01:00
gcs-fixture HttpHandlers should return correct list of objects (#49283) 2019-11-20 09:26:42 +01:00
hdfs-fixture fix and enable repository-hdfs secure tests (#44044) (#44199) 2019-07-12 12:44:01 +10:00
krb5kdc-fixture Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
minio-fixture Move MinIO fixture in its own project (#49036) 2019-11-13 10:03:59 -05:00
old-elasticsearch [Backport] Replace usages RandomizedTestingTask with built-in Gradle Test (#40978) (#40993) 2019-04-09 11:52:50 -07:00
s3-fixture HttpHandlers should return correct list of objects (#49283) 2019-11-20 09:26:42 +01:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00