Will “merge api” affect “_snapshot”?

Will “merge api” affect “_snapshot”?
When I used _snapshot to backup my index.And then use "merge api" to merge segments.
Does this operate will cause some problems.In other words,the data will not correct.

Merge shouldn't make any data incorrect. However, since snapshot is based on segments and only copies over segments that were modified since the last snapshot, calling force merge will cause all segments to be overridden, so the next snapshot after this operation will have to copy over the entire index.

You can snapshot at the same time as you merge, sure. If merge wants to delete a file that is needed by the snapshot then the file will stick around until the snapshot is done and then be cleaned up. It should be fine. And happens all the time in the background actually.

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.