-
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
DATA RACE in the stmtctx.(*StatementContext) #55468
Comments
I think the reason is tidb/pkg/sessionctx/stmtctx/stmtctx.go Lines 326 to 331 in d04ec9d
It is introduce to reduce object allocations in PR #26064 However, the background goroutine in coprocessor may still be running after the previous statement finished, and every time a statement starts, tidb/pkg/sessionctx/stmtctx/stmtctx.go Lines 465 to 476 in d04ec9d
Does it mean we should not reuse the |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: