-
Notifications
You must be signed in to change notification settings - Fork 222
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
DATA RACE in the internal/unionstore.(*MemDB) #608
Comments
@hawkingrei I think MemDB is not designed to allow accessing by multiple goroutines. So tidb may need some lock to avoid data race. |
I think #585 should have resolved similar races that cause real problems. I have been aware of the race in |
And sadly, Go doesn't provide atomic load/store in relaxed order. It will bring small performance regression if we insist on removing this unimportant race by using an atomic int. |
@hawkingrei could you confirm if the tidb you are using contains the patch #585 ? |
@disksing I think it is used in tidb. Let me check our team's CI to find this problem again. |
@disksing This problem is still in existed. |
@sticnarf was the previous patch fix incomplete? I doubt if it should be fixed within client-go. |
I cannot guarantee it is complete, but it should have covered the known cases. The race reported by this issue is not a real problem and should be ignored. (Although it's truly a race) |
The text was updated successfully, but these errors were encountered: