-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Bug Report: Panic when accessing table from denied_tables #16858
Comments
cc @vitessio/query-serving |
This could be happening as buffering is default false and we are accessing it is the code without that check |
@wiebeytec I think this was fixed via #16922. Can this issue be closed? |
I tested with There are these cases: Case 1
This takes exactly 30 seconds before it returns, saying that it's not getting it from Case 2The same as case one, but then with a default DB:
Case 3
Expected behaviorInstant result saying that access to the table is denied because it's in the deny list on this shard. |
Overview of the Issue
When I perform operations on tables that are in the
denied_tables
(because ofMoveTables
) on the shard tablet control, I get a panic, and the local client reports "Lost connection to MySQL server during query".This is very confusing to programmers. Even though they're not supposed to use that table, they don't see what they're doing wrong.
Expected result: a query error is returned saying something about that the table is marked as denied. I think think this used to be the case before. Not sure when it changed.
Reproduction Steps
Put a table in the
denied_tables
:Then when you select from it:
Binary Version
Operating System and Environment details
The text was updated successfully, but these errors were encountered: