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

Check whether the index exists before creation #477

Closed
wants to merge 1 commit into from
Closed

Check whether the index exists before creation #477

wants to merge 1 commit into from

Conversation

takezoe
Copy link
Contributor

@takezoe takezoe commented Jun 20, 2015

RestClient always tries to create the index at first, but Elasticsearch logs it as ERROR if the index already exists. It might cause an alert from monitoring system.

I guess it's better to check whether the index exists before creation to avoid error log output at Elasticsearch.

@costin
Copy link
Member

costin commented Jun 21, 2015

Merged in master. Thank you.

@takezoe takezoe deleted the avoid_create_index_error_log branch July 7, 2017 03:37
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.

None yet

2 participants