-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[Bug]: Jaeger Query Tags Search Causes Nested Search Error #3900
Comments
I've tried upgrading to v1.36 and this issue still exists. Adding a nested mapping for tags fixes the issue, but since we don't use this part of the document, it should be optional. |
Hi @yurishkuro , I am interested in resolving this issue. I have some doubts regarding the issue.
|
I am not sure of the validity of this ticket. The JSON example clearly shows |
So from what I understand from our code and issues of similar kind, we are sending an empty object(
jaeger/plugin/storage/es/spanstore/reader.go Line 690 in 369219c
|
The issue is not finding the nested object under the field right ? |
Whats your take on this @yurishkuro ? |
I don't have a take. The issue needs to be reproduced, but the error does not match the JSON snippet which does have |
The document having tags and the tags field being mapped to a nested object are completely separate from one another. Because I was leveraging es.tags-as-fields.all, the tags field is never populated with values other than the empty object. Additionally because of es.create-index-templates: False, the field was unmapped by our mapping configuration. I believe mapping the tags field should be optional given that it can be completely unused. The error is because the query from the UI requires the tags field to be mapped. It would not be required if the query is constructed with the ignore_unmapped flag. |
I agree that the query logic right now always tries to look into both formats. It could account for |
So @yurishkuro , we can either have the ignore_unmapped flag or just stop sending the nested query request if Tags field is empty. Which one do you prefer? Why(just for understanding) |
if we know from config settings that this field is never going to be populated, there is no reason to include it in the query. I don't know what |
@yurishkuro , Raised a PR #4651 addressing this issue, Can you please take a look! |
What happened?
When searching for tags in the UI, a "failed to create query: [nested] failed to find nested object under path [tags]" error is thrown by jaeger's query. I would think ignore_unmapped would be used here to prevent this error, but it isn't in the query.
Steps to reproduce
Expected behavior
I expect the nested error to be ignored and the search to work.
Relevant log output
Screenshot
No response
Additional context
Jaeger backend version
v1.26
SDK
No response
Pipeline
Java -> Jaeger Collector (zipkin format via :9411) -> Intake ELK cluster -> CCR -> Query ELK Cluster -> Jaeger Query/UI
Stogage backend
Elasticsearch 7.16.3
Operating system
Oracle Linux Server 7.9
Deployment model
No response
Deployment configs
No response
The text was updated successfully, but these errors were encountered: