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

Fix template/policy is always overwritten #11671

Merged
merged 3 commits into from
Apr 7, 2019

Conversation

urso
Copy link

@urso urso commented Apr 5, 2019

The force flag for policy and template overwrites have been set to true
in the standard Elasticsearch callback. Due to this every reconnect will
result in the policy and template being overwritten.

This fix sets the flags to false and ensure that the template is only
overwritten if a new policy is created in Elasticsearch.

The force flag for policy and template overwrites have been set to true
in the standard Elasticsearch callback. Due to this every reconnect will
result in the policy and template being overwritten.

This fix sets the flags to false and ensure that the template is only
overwritten if a new policy is created in Elasticsearch.
@urso urso requested a review from a team as a code owner April 5, 2019 15:28
@alvarolobato
Copy link

Is this related to this issue ? #11594

@urso
Copy link
Author

urso commented Apr 5, 2019

@alvarolobato I'd say yes. The fact that user has configured template overwrite to true was maybe a little missleading, but same issue.

@urso urso added the v7.0.0 label Apr 5, 2019
@urso urso requested a review from ph April 5, 2019 16:07
urso pushed a commit that referenced this pull request Apr 5, 2019
…11672)

Cherry-pick of PR #11671 to 7.0 branch. Original message: 

The force flag for policy and template overwrites have been set to true
in the standard Elasticsearch callback. Due to this every reconnect will
result in the policy and template being overwritten.

This fix sets the flags to false and ensure that the template is only
overwritten if a new policy is created in Elasticsearch.
graphaelli added a commit to elastic/apm-server that referenced this pull request Apr 5, 2019
* Fix index template always being overwritten - elastic/beats#11671
* Perform Basic license check on Elasticsearch connect - elastic/beats#11296 + elastic/beats#11649
@ph
Copy link
Contributor

ph commented Apr 5, 2019

Original issue #11668

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants