-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
planner: do not filter access paths by isolation read for mysql.SystemDB
#14309
planner: do not filter access paths by isolation read for mysql.SystemDB
#14309
Conversation
planner/core/logical_plan_builder.go
Outdated
@@ -2536,7 +2536,9 @@ func (b *PlanBuilder) buildDataSource(ctx context.Context, tn *ast.TableName, as | |||
if err != nil { | |||
return nil, err | |||
} | |||
possiblePaths, err = b.filterPathByIsolationRead(possiblePaths) | |||
if dbName.L != mysql.SystemDB { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put the check into the function? In case that someone else called the function but forgot the check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
What problem does this PR solve?
After
set global tidb_isolation_read_engines="tiflash"
, then restart tidb-server. The bootstrap can't finish because of some system DB's queries. It only can accessTiKV
.What is changed and how it works?
Check the DB name whether is
mysql.SystemDB
before filter access paths by isolation read.Check List
Tests