Skip to content

Conversation

@dnhatn
Copy link
Member

@dnhatn dnhatn commented Aug 22, 2019

Since #45136, we use soft-deletes instead of translog in peer recovery.
There's no need to retain extra translog to increase a chance of
operation-based recoveries. This commit ignores the translog retention
policy if soft-deletes is enabled so we can discard translog more
quickly.

Backport of #45473

dnhatn added 2 commits August 22, 2019 13:23
Since elastic#45136, we use soft-deletes instead of translog in peer recovery. There's no need to retain extra translog to increase a chance of operation-based recoveries. This commit ignores the translog retention policy if soft-deletes is enabled so we can discard translog more quickly. Co-authored-by: David Turner <david.turner@elastic.co> Relates elastic#45136
If soft-deletes is enabled, we will trim translog above the local checkpoint of the safe commit immediately. However, if the translog durability is async, the last commit might not be the safe commit as the local checkpoint won't advance until translog is synced. Therefore, we need to verify translog stats busily. Closes elastic#45801 Relates elastic#45473
@dnhatn dnhatn merged commit 3393f95 into elastic:7.x Aug 22, 2019
@dnhatn dnhatn deleted the 7x-translog-policy branch August 22, 2019 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant