-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
fatal error: concurrent map read and map write
from Config.Labels
#45561
Comments
@gengliqi: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/severity major |
@gengliqi: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/component pd |
/found customer |
Bug Report
tidb/server/http_handler.go
Lines 2221 to 2231 in b4183e1
The code above wants to update
Labels
inConfig
. It copies the global config first and then changes theLabels
in the copy.However, the
Labels
is amap[string]string
so the copy is shallow, which causes this data race.The text was updated successfully, but these errors were encountered: