OpenSearch/server
Tanguy Leroux f02cbe9e40 Trim translog for closed indices (#43156)
Today when an index is closed all its shards are forced flushed
but the translog files are left around. As explained in #42445
we'd like to trim the translog for closed indices in order to
consume less disk space. This commit reuses the existing
AsyncTrimTranslogTask task and reenables it for closed indices.

At the time the task is executed, we should have the guarantee
that nothing holds the translog files that are going to be removed.
It also leaves a short period of time (10 min) during which translog
files of a recently closed index are still present on disk. This could
 also help in some cases where the closed index is reopened
shortly after being closed (in order to update an index setting
for example).

Relates to #42445
2019-06-28 16:58:39 +02:00
..
licenses Upgrade HPPC to version 0.8.1 (#43025) 2019-06-12 13:14:16 +02:00
src Trim translog for closed indices (#43156) 2019-06-28 16:58:39 +02:00
build.gradle Upgrade HPPC to version 0.8.1 (#43025) 2019-06-12 13:14:16 +02:00