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

Replace document_already_exist_exception with version_conflict_engine_exception in the silence_errors_in_log setting example #1159

Merged
merged 2 commits into from Nov 9, 2023

Conversation

herrBez
Copy link
Contributor

@herrBez herrBez commented Nov 9, 2023

The example reported in documentation for the setting silence_errors_in_log does not appear to work with modern version of Elasticsearch. The correct value should be version_conflict_engine_exception, which as per https://github.com/elastic/elasticsearch/blob/main/server/src/main/java/org/elasticsearch/ElasticsearchException.java#L1271C1-L1272C replaced the exception document_already_exist_exception.

This PR replace in the example for silence_errors_in_log the deprecated/not more existent document_already_exist_exception with the value version_conflict_engine_exception.

…ent_already_exists_exception with version_conflict_engine_exception
Copy link

cla-checker-service bot commented Nov 9, 2023

💚 CLA has been signed

@kaisecheng
Copy link
Contributor

@logstashmachine bump patch

@kaisecheng
Copy link
Contributor

The changes look good. Please bump the version to 11.20.1 in CHANGELOG.md and logstash-output-elasticsearch.gemspec. Could you sign the contributor agreement?

Copy link
Contributor

@kaisecheng kaisecheng left a comment

Choose a reason for hiding this comment

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

CI is green. LGTM! Thanks for contributing this project!

@kaisecheng kaisecheng merged commit 2abec75 into logstash-plugins:main Nov 9, 2023
2 checks passed
BBQigniter added a commit to BBQigniter/logstash-docs that referenced this pull request Nov 21, 2023
The example is unfortunately deprecated and does not work anymore. See logstash-plugins/logstash-output-elasticsearch#1159 

Also it would be nice to have a list of possible values somewhere - I could not find any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants