OpenSearch/plugins/repository-azure
Armin Braun 6aaee8aa0a
Repository Cleanup Endpoint (#43900) (#45780)
* Repository Cleanup Endpoint (#43900)

* Snapshot cleanup functionality via transport/REST endpoint.
* Added all the infrastructure for this with the HLRC and node client
* Made use of it in tests and resolved relevant TODO
* Added new `Custom` CS element that tracks the cleanup logic.
Kept it similar to the delete and in progress classes and gave it
some (for now) redundant way of handling multiple cleanups but only allow one
* Use the exact same mechanism used by deletes to have the combination
of CS entry and increment in repository state ID provide some
concurrency safety (the initial approach of just an entry in the CS
was not enough, we must increment the repository state ID to be safe
against concurrent modifications, otherwise we run the risk of "cleaning up"
blobs that just got created without noticing)
* Isolated the logic to the transport action class as much as I could.
It's not ideal, but we don't need to keep any state and do the same
for other repository operations
(like getting the detailed snapshot shard status)
2019-08-21 17:59:49 +02:00
..
licenses Increase max chunk size to 256Mb for repo-azure (#32101) 2018-07-31 16:21:48 +02:00
qa Reomve debugging loging statements from Azure tests 2019-07-22 16:55:55 +09:00
src Repository Cleanup Endpoint (#43900) (#45780) 2019-08-21 17:59:49 +02:00
build.gradle Add SAS Token Authentication Support to Azure Repo Plugin (#42982) (#43618) 2019-06-26 13:43:32 +02:00