Some read requests do not honor the store labels #45693
Labels
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
affects-8.5
This bug affects the 8.5.x(LTS) versions.
severity/major
sig/transaction
SIG:Transaction
type/bug
The issue is confirmed as a bug.
Bug Report
TiDB only set
MatchStoreLabels
onexecutorBuilder.getSnapshot
, however some of executors may usetxn.{Get,BatchGet}
directly. These reads do not honor the store labels thus may access replicas on the slow tikv.1. Minimal reproduce step (Required)
Deploy a cluster with 3 AZs and evict-slow-store-scheduler, run a stale read workload, and then slowdown a tikv in one AZ.
2. What did you expect to see? (Required)
The other two AZs should not be affected after leaders have been evicted.
3. What did you see instead (Required)
All AZs had perf regression during the fault injection.
4. What is your TiDB version? (Required)
release-6.5
The text was updated successfully, but these errors were encountered: