Skip to content

Conversation

@tlrx
Copy link
Member

@tlrx tlrx commented Oct 8, 2019

Similarly to #47582, Auto-follow patterns creates following indices as long as the remote index matches the pattern and the remote primary shards are all started. But since 7.2 closed indices are also replicated, and it does not play well with CCR auto-follow patterns as they create following indices for closed leader indices too.

This pull request changes the getLeaderIndicesToFollow() so that closed indices are excluded from auto-follow patterns.

@tlrx tlrx added >bug :Distributed Indexing/CCR Issues around the Cross Cluster State Replication features v8.0.0 v7.5.0 v7.4.1 labels Oct 8, 2019
@tlrx tlrx requested review from dnhatn and martijnvg October 8, 2019 09:03
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/CCR)

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tlrx tlrx merged commit d946f9d into elastic:master Oct 9, 2019
@tlrx tlrx deleted the do-not-autofollow-closed-indices branch October 9, 2019 14:16
@tlrx
Copy link
Member Author

tlrx commented Oct 9, 2019

Thanks @martijnvg

tlrx added a commit to tlrx/elasticsearch that referenced this pull request Oct 9, 2019
Backport of (elastic#47721) for 7.x.

Similarly to elastic#47582, Auto-follow patterns creates following
indices as long as the remote index matches the pattern and
the remote primary shards are all started. But since 7.2 closed
indices are also replicated, and it does not play well with CCR
auto-follow patterns as they create following indices for closed
leader indices too.

This commit changes the getLeaderIndicesToFollow() so that closed
indices are excluded from auto-follow patterns.
tlrx added a commit that referenced this pull request Oct 9, 2019
tlrx added a commit that referenced this pull request Oct 9, 2019
Backport of (#47721) for 7.x.

Similarly to #47582, Auto-follow patterns creates following
indices as long as the remote index matches the pattern and
the remote primary shards are all started. But since 7.2 closed
indices are also replicated, and it does not play well with CCR
auto-follow patterns as they create following indices for closed
leader indices too.

This commit changes the getLeaderIndicesToFollow() so that closed
indices are excluded from auto-follow patterns.
tlrx added a commit that referenced this pull request Oct 9, 2019
Backport of (#47721) for 7.x.

Similarly to #47582, Auto-follow patterns creates following
indices as long as the remote index matches the pattern and
the remote primary shards are all started. But since 7.2 closed
indices are also replicated, and it does not play well with CCR
auto-follow patterns as they create following indices for closed
leader indices too.

This commit changes the getLeaderIndicesToFollow() so that closed
indices are excluded from auto-follow patterns.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Distributed Indexing/CCR Issues around the Cross Cluster State Replication features v7.4.1 v7.5.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants