Skip to content

Migrate peer recovery from translog to retention lease#50211

Merged
dnhatn merged 1 commit intoelastic:7.5from
dnhatn:7.5-45136
Dec 16, 2019
Merged

Migrate peer recovery from translog to retention lease#50211
dnhatn merged 1 commit intoelastic:7.5from
dnhatn:7.5-45136

Conversation

@dnhatn
Copy link
Copy Markdown
Member

@dnhatn dnhatn commented Dec 16, 2019

Since 7.4, we switch from translog to Lucene as the source of history
for peer recoveries. However, we reduce the likelihood of
operation-based recoveries when performing a full cluster restart from
pre-7.4 because existing copies do not have PPRL.

To remedy this issue, we fallback using translog in peer recoveries if
the recovering replica does not have a peer recovery retention lease,
and the replication group hasn't fully migrated to PRRL.

Backport of #49448
Relates #45136

Since 7.4, we switch from translog to Lucene as the source of history
for peer recoveries. However, we reduce the likelihood of
operation-based recoveries when performing a full cluster restart from
pre-7.4 because existing copies do not have PPRL.

To remedy this issue, we fallback using translog in peer recoveries if
the recovering replica does not have a peer recovery retention lease,
and the replication group hasn't fully migrated to PRRL.

Relates elastic#45136
@dnhatn dnhatn merged commit 185cc47 into elastic:7.5 Dec 16, 2019
@dnhatn dnhatn deleted the 7.5-45136 branch December 16, 2019 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant