Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tighten mapping syncing in ccr remote restore #38459

Merged
merged 3 commits into from
Feb 6, 2019

Conversation

Tim-Brooks
Copy link
Contributor

There are two issues regarding the way that we sync mapping from leader
to follower when a ccr restore is completed:

  1. The returned mapping from a cluster service might not be up to date
    as the mapping of the restored index commit.

  2. We should not compare the mapping version of the follower and the
    leader. They are not related to one another.

Moreover, I think we should only ensure that once the restore is done,
the mapping on the follower should be at least the mapping of the copied
index commit. We don't have to sync the mapping which is updated after
we have opened a session.

Relates #36879
Closes #37887

There are two issues regarding the way that we sync mapping from leader
to follower when a ccr restore is completed:

1.  The returned mapping from a cluster service might not be up to date
as the mapping of the restored index commit.

2. We should not compare the mapping version of the follower and the
leader. They are not related to one another.

Moreover, I think we should only ensure that once the restore is done,
the mapping on the follower should be at least the mapping of the copied
index commit. We don't have to sync the mapping which is updated after
we have opened a session.

Relates elastic#36879
Closes elastic#37887
@Tim-Brooks Tim-Brooks added >non-issue :Distributed Indexing/CCR Issues around the Cross Cluster State Replication features backport v6.7.0 labels Feb 5, 2019
@Tim-Brooks Tim-Brooks requested a review from dnhatn February 5, 2019 20:02
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@Tim-Brooks Tim-Brooks changed the title Tighten mapping syncing in ccr remote restore (#38071) Tighten mapping syncing in ccr remote restore Feb 5, 2019
@Tim-Brooks
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/1

@Tim-Brooks Tim-Brooks merged commit f77b884 into elastic:6.x Feb 6, 2019
@Tim-Brooks Tim-Brooks deleted the backport_mappings branch December 18, 2019 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Distributed Indexing/CCR Issues around the Cross Cluster State Replication features >non-issue v6.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants