-
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
flushWatcher loop may call refreshPluginState frequently when watch chan closed #49273
Comments
@kevin-xianliu, please sort out the code that calls etcd directly, change them one by one, this is prohibited from now on. |
@kevin-xianliu |
we don't provide uniform pd-client for Etcd now, but I think introducing the authentication mechanism for embedded Etcd is a good idea, will open an issue to track it after we sort out this module. |
/found customer |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
tidb/pkg/plugin/plugin.go
Lines 279 to 289 in 90e272a
This above code does not handle case
watchChan
closed, sorefreshPluginState
will be called frequently when this happens.2. What did you expect to see? (Required)
When
watchChan
closed , we should close watch chan3. What did you see instead (Required)
closed chan is not handled correctly
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: