-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use thread safe chunk iterator in sharding tests (#7504)
The PromQL engine currently uses pooling of histogram pointers, optimized for reading chunks where the iterator returns a copy of the data. However in the sharding tests we run multiple engines on the same data with an iterator from promql.StorageSeries that does not copy the histograms. So it can happen that pointers are reused between the goroutines and end up in a race. Signed-off-by: György Krajcsovits <[email protected]>
- Loading branch information
Showing
3 changed files
with
92 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters