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

Fix duplicated span when querying Elasticsearch [#1297] #1298

Closed
wants to merge 1 commit into from

Conversation

Volcannozzz
Copy link

@Volcannozzz Volcannozzz commented Jan 24, 2019

Resolves #1297

Copy link
Contributor

@black-adder black-adder left a 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))
Copy link
Contributor

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.

Copy link
Author

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.

@black-adder
Copy link
Contributor

@yurishkuro
Copy link
Member

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.

@pavolloffay pavolloffay changed the title fix bug [#1297] Fix duplicated span when querying Elasticsearch [#1297] Jun 28, 2019
@pavolloffay
Copy link
Member

done in #1677

thanks @Volcannozzz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

querying data repeatedly makes duplicated span on jaeger-ui
4 participants