-
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
It takes time to broadcast FLUSH PRIVILEGES
to all TiDB instances
#14914
Comments
There are two methods that privilege changes are "broadcast" to other nodes:
Lines 1307 to 1323 in 7c19975
We can see that because the code in the notification is running So the code will need a little bit of refactoring so that @aylei as a workaround, you can use the |
Sorry, I didn't realize how old this issue is :-) It still makes sense to fix. |
Can't reproduce this issue. @aylei I will close this issue and please feel free to make a try and reopen it again. |
Please check whether the issue should be labeled with 'affects-x.y' or 'backport-x.y.z', |
From code-inspection, the issue still exists. I think it is worth fixing. |
Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
As showed above, after I changed the root password and execute
FLUSH PRIVILEGES
, I can still login mysql with the old password for about 3~5 minutes.What did you expect to see?
As per the document, old password should be invalidated once
FLUSH PRIVILEGES
succeed.What did you see instead?
Old password still took effect.
What version of TiDB are you using (
tidb-server -V
or runselect tidb_version();
on TiDB)?v4.0.0-beta-52-gfa6f1c58c
The text was updated successfully, but these errors were encountered: