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 Search - Cross pollination #2454

Merged
merged 3 commits into from
May 10, 2023
Merged

Conversation

joe-elliott
Copy link
Member

The query frontend currently has an issue introduced in #2366 where it will cross pollinate search results if two were initiated at roughly the same time.

This was due to reuse of the same "shardedSearchProgress" object for every query. This PR fixes it by using a factory function instead of a single instance to have a unique instance per search.

Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
@joe-elliott joe-elliott merged commit af869e8 into grafana:main May 10, 2023
14 checks passed
mapno pushed a commit to mapno/tempo that referenced this pull request May 11, 2023
* fix issue where the same searchProgress was used for multiple searches

Signed-off-by: Joe Elliott <number101010@gmail.com>

* fix race

Signed-off-by: Joe Elliott <number101010@gmail.com>

* actually fix race

Signed-off-by: Joe Elliott <number101010@gmail.com>

---------

Signed-off-by: Joe Elliott <number101010@gmail.com>
mapno added a commit that referenced this pull request May 11, 2023
* fix issue where the same searchProgress was used for multiple searches



* fix race



* actually fix race



---------

Signed-off-by: Joe Elliott <number101010@gmail.com>
Co-authored-by: Joe Elliott <number101010@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants