-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
log_backup: TiDB may panic when canceling task. #50839
Comments
For context: the nil pointer panic is likely due to this line being executed without a lock and/or before the subscriber event stream being cleared. tidb/br/pkg/streamhelper/advancer.go Lines 293 to 302 in 795585b
this caused tidb/br/pkg/streamhelper/advancer.go Lines 362 to 371 in 795585b
Given that Go supports generics now I think we should refactor the code to replace |
close pingcap#50839 Signed-off-by: Yu Juncen <yu745514916@live.com>
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
The task has been safely removed.
3. What did you see instead (Required)
TiDB panicked at the event handler of the subscriber.
4. What is your TiDB version? (Required)
v6.5.3
The text was updated successfully, but these errors were encountered: