-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix duplicated span when querying Elasticsearch [#1297] #1298
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think you can add a test for this so we don't get a regression in the future?
@@ -293,7 +293,7 @@ func (s *SpanReader) multiRead(ctx context.Context, traceIDs []string, startTime | |||
if len(traceIDs) == 0 { | |||
break | |||
} | |||
|
|||
searchRequests := make([]*elastic.SearchRequest, len(traceIDs)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isn't the most efficient fix, ideally we alloc just once and play around with the indices rather than alloc each iteration. We can leave a TODO for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isn't the most efficient fix, ideally we alloc just once and play around with the indices rather than alloc each iteration. We can leave a TODO for now.
Good suggestion.We(@crazycomputer) have fixed it and will test it in our project tommorrow.If success,i will make a standard PR again.
please see https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md#certificate-of-origin---sign-your-work to pass the DCO check |
Please fix the PR title to reflect the change being made (what it fixes goes into description). PR title typically goes into the final commit comment, and should follow the guidelines in CONTRIBUTING. |
done in #1677 thanks @Volcannozzz |
Resolves #1297