-
Notifications
You must be signed in to change notification settings - Fork 3.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
fix: errors reported by the race detector #13174
Commits on Jun 7, 2024
-
Analytics: eliminate reported race by removing globals
cpuUsage remains as a global variable, but it is implemented using atomic values. Signed-off-by: Bryan Boreham <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f1f69dc - Browse repository at this point
Copy the full SHA f1f69dcView commit details -
Analytics: eliminate reported race from CAS operations
Use two different variables to silence the report. Signed-off-by: Bryan Boreham <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f7cdff6 - Browse repository at this point
Copy the full SHA f7cdff6View commit details -
Bloombuild tests: eliminate race in fakeBuilder
With a Mutex. Signed-off-by: Bryan Boreham <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3ad076d - Browse repository at this point
Copy the full SHA 3ad076dView commit details -
Bloombuild tests: eliminate race in fakePlannerServer
With an atomic variable. Signed-off-by: Bryan Boreham <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 262dc81 - Browse repository at this point
Copy the full SHA 262dc81View commit details -
chunkenc tests: eliminate race in TestSerialization
Avoid changing a global variable. Signed-off-by: Bryan Boreham <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6a40020 - Browse repository at this point
Copy the full SHA 6a40020View commit details -
Bloomgateway tests: avoid race in dummyStore
We cannot share querier or block objects across goroutines, because they have state that is updated. Instead, copy the blocks and create a new querier each time the mock `FetchBlocks` is called. Signed-off-by: Bryan Boreham <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8ed85e6 - Browse repository at this point
Copy the full SHA 8ed85e6View commit details -
Bloombuild tests: avoid race on shared err variable
Give everyone their own variable. Signed-off-by: Bryan Boreham <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1e7b46b - Browse repository at this point
Copy the full SHA 1e7b46bView commit details -
Bloombuild: protect QueueTask against race conditions
Using an atomic variable. Signed-off-by: Bryan Boreham <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6f68ebe - Browse repository at this point
Copy the full SHA 6f68ebeView commit details -
Bloombuild tests: protect fakeBuilder against race conditions
Using atomic variables. Signed-off-by: Bryan Boreham <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 327a81e - Browse repository at this point
Copy the full SHA 327a81eView commit details