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

Handled SavedObjectsClient errors logged at the error level #84545

Closed
kobelb opened this issue Nov 30, 2020 · 2 comments
Closed

Handled SavedObjectsClient errors logged at the error level #84545

kobelb opened this issue Nov 30, 2020 · 2 comments
Labels
bug Fixes for quality problems that affect the customer experience Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@kobelb
Copy link
Contributor

kobelb commented Nov 30, 2020

The new ES Client automatically logs all errors at the error log level, even if the errors are appropriately handled by the calling code. This is the root-cause of log messages similar to the following showing up during Kibana's start-up:

log [08:18:53.459] [error][data][elasticsearch] [version_conflict_engine_exception]: [task:Lens-lens_telemetry]: version conflict, document already exists (current version [4])

The legacy ES Client did not log these version_conflict_engine_exception errors at the error level.

This behavior with the new ES Client can be suppressed by ignoring specific error codes, but this is not done automatically by the SavedObjectsClient, and there is no way to opt-in to this behavior.

@kobelb kobelb added bug Fixes for quality problems that affect the customer experience Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc labels Nov 30, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@kobelb
Copy link
Contributor Author

kobelb commented Nov 30, 2020

Closing as dupe of #84447... Should've searched first.

@kobelb kobelb closed this as completed Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
Development

No branches or pull requests

2 participants