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
tikv-client: stale Region cache may continue to be used after RegionNotFound #69197
Use TiDB v8.5 with replica read / closest replica behavior.
A Region split happens while a replica is temporarily unavailable or lagging.
A request sent to a stale replica returns RegionNotFound.
The previous v8.5 client-go backport only scheduled an async Region cache reload, so concurrent requests could continue using the stale Region cache before the reload completed.
After RegionNotFound, stale Region cache entries should be invalidated immediately so concurrent requests stop using them. The current request may still retry on the leader safely.
3. What did you see instead (Required)
The previous v8.5 client-go behavior used async Region cache reload after RegionNotFound. During the async reload window, concurrent requests could keep using stale Region cache entries, which may cause repeated RegionNotFound errors and extra cross-AZ retries/traffic.
4. What is your TiDB version? (Required)
TiDB v8.5.x / release-8.5 before bumping github.com/tikv/client-go/v2 to a commit including tikv/client-go#2004 (a2b634d170d9b5ae8119d0322f807c755a56a23e).
Activity
deps: bump client-go for RegionNotFound fix (#69196)