-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Provide more information on _failed_to_convert_ exceptions #21946
Comments
any suggestions on what the failure message should be like? |
Hi @ppf2 Can I work on this? I think at least, we can put the exception message to source. Any thoughts about this? Thanks. 😃 |
@ppf2 Here's an example of the way the error is logged currently for invalid json. For invalid json, e.g. the invalid token in the tests, currently we print:
whereas with this change we would get the exception message as well:
Do you think that is helpful enough to close your issue? |
Thanks, I think |
This is not going to be easy, since printing the "_source" in json form is the operation we are failing on here in the first place. So I think we'll have to go with the exception message here. |
Sounds good, thx! |
https://github.com/elastic/elasticsearch/blob/master/core/src/main/java/org/elasticsearch/index/IndexingSlowLog.java#L187
When we get the failed_to_convert message in the slowlog entry for indexing, it doesn't provide any information on what part of the document it has trouble json-ing. It will be helpful to provide some pointers so the end user can go check their source/ingest pipeline, etc..
The text was updated successfully, but these errors were encountered: