OpenSearch/core
Boaz Leskes 1775e4253e Introducing a translog deletion policy (#24950)
Currently, the decisions regarding which translog generation files to delete are hard coded in the interaction between the `InternalEngine` and the `Translog` classes. This PR extracts it to a dedicated class called `TranslogDeletionPolicy`, for two main reasons:

1) Simplicity - the code is easier to read and understand (no more two phase commit on the translog, the Engine can just commit and the translog will respond)
2) Preparing for future plans to extend the logic we need - i.e., retain multiple lucene commit and also introduce a size based retention logic, allowing people to always keep a certain amount of translog files around. The latter is useful to increase the chance of an ops based recovery.
2017-06-01 14:04:21 +02:00
..
licenses Upgrade to lucene-7.0.0-snapshot-a0aef2f 2017-05-19 10:20:55 -05:00
src Introducing a translog deletion policy (#24950) 2017-06-01 14:04:21 +02:00
build.gradle Remove the need for _UNRELEASED suffix in versions (#24798) 2017-05-26 18:36:32 -04:00