You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TiFlash plan returns No access path error in RC isolation level #65059
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
create table t1(a int primary key, b int);
create table t2(a int primary key, b int);
alter table t1 set tiflash replica 1;
alter table t2 set tiflash replica 1;
set tx_isolation="READ-COMMITTED";
begin;
explain select /*+ set_var(tidb_isolation_read_engines='tidb,tiflash'),set_var(tidb_enforce_mpp=on) */ * from t1 join t2 on t1.a=t2.b where t1.a in (1,2);
2. What did you expect to see? (Required)
TiFlash plan is shown without error.
3. What did you see instead (Required)
ERROR 1815 (HY000): Internal : No access path for table 't1' is found with 'tidb_isolation_read_engines' = 'tidb,tiflash', valid values can be 'tikv'.
But if query the t1 with where predicate, it is error
mysql> explain select /*+ set_var(tidb_isolation_read_engines='tidb,tiflash'),set_var(tidb_enforce_mpp=on) */ * from t1 where t1.a in (1,2);
ERROR 1815 (HY000): Internal : No access path for table 't1' is found with 'tidb_isolation_read_engines' = 'tidb,tiflash', valid values can be 'tikv'.
Activity
pcqz7 commentedon Dec 16, 2025
/report customer
pcqz7 commentedon Dec 16, 2025
The error could be an expected behavior after the fix #39543, but TiFlash supports RC isolation level that's not exactly the same as
for update.elsa0520 commentedon Dec 16, 2025
I try to reproduce this problem and I found
If query the t1 without where predicate, it is ok.
But if query the t1 with where predicate, it is error
elsa0520 commentedon Dec 16, 2025
If the query is inside of transaction, it failed.
So the trigger condition are:
pcqz7 commentedon Dec 16, 2025
After the fix #39553, the error is reported
planner: fix no access path when TiKV read is disabled under RC isola…
planner: fix no access path when TiKV read is disabled under RC isola…
planner: fix no access path when TiKV read is disabled under RC isola…