Skip to content

Expunge deletes after shrink #29482

@inqueue

Description

@inqueue

Describe the feature:
Looking at the Shrink API, the target index consumes twice the amount of disk space as the source index due to unsearchable segments left behind by the API. It would be an easy win to free up disk space by executing a force merge with only_expunge_deletes=true after completing the shrink operation. Could these options be considered?

  • Add a parameter to _shrink to trigger segment removal merged segments; i.e., call /_force_merge?only_expunge_deletes=true.
  • Document a clean up step to execute force merge with only_expunge_deletes=true.
  • Both options above.

Elasticsearch version (bin/elasticsearch --version):

Version: 6.2.2, Build: 10b1edd/2018-02-16T19:01:30.685723Z, JVM: 1.8.0_51

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions