Store info in region cache won't be refreshed if tiflash nodes were ever scaled-in #7408
Labels
affects-5.0
affects-5.1
affects-5.2
affects-5.3
affects-5.4
affects-6.0
affects-6.1
component/compute
component/coprocessor
severity/major
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
The queries after scale-in succeed.
3. What did you see instead (Required)
Query failed with:
This is because that a stale store info (the scaled-in store) exists in region cache in tiflash client-c. When doing remote read, tiflash will ask pd about the latest region info using the stale store id. However, when encountering the error of invalid store id, the backoff logic doesn't invalidate the store info in the region cache before, causing tiflash keeps using the invalid store id until the backoff threshold is triggered and subsequently reports error.
4. What is your TiFlash version? (Required)
6.1.5
The text was updated successfully, but these errors were encountered: