throwing pseudo region error due to no replica available

【 TiDB 使用环境】 生产
【 TiDB 版本】v7.5.4

其中有大量类似信息,但是查看:

[2025/01/16 01:36:03.216 +08:00] [INFO] [region_request.go:1754] [“throwing pseudo region error due to no replica available”] [req-ts=455334292890320907] [req-type=Commit] [region=“{ region id: 153289, ver: 1327, confVer: 5 }”] [replica-read-type=leader] [stale-read=false] [request-sender=“{rpcError:,replicaSelector: replicaSelector{selectorStateStr: tryFollower, cacheRegionIsValid: false, replicaStatus: [peer: 153290, store: 1, isEpochStale: false, attempts: 1, attempts_time: 7.45ms, replica-epoch: 0, store-epoch: 0, store-state: resolved, store-liveness-state: reachable peer: 153291, store: 3, isEpochStale: false, attempts: 0, attempts_time: 0s, replica-epoch: 0, store-epoch: 0, store-state: resolved, store-liveness-state: reachable peer: 153292, store: 2, isEpochStale: false, attempts: 0, attempts_time: 0s, replica-epoch: 0, store-epoch: 0, store-state: resolved, store-liveness-state: reachable]}}”] [total-round-stats=“{total-backoff: 1m5.5s, total-backoff-times: 145}”] [current-round-stats=“{time: 507.9ms, backoff: 500ms, timeout: 30s, req-max-exec-timeout: 20s, retry-times: 1}”]

今早查看副本完全正常

业务侧报错:java.sql.BatchUpdateException: Region is unavailable

tidb上有类似bug: "throwing pseudo region error due to no replica available" · Issue #56619 · pingcap/tidb · GitHub

看这个issue是一个go版本的bug导致的这个报错。

用tidb_version函数看7.5.4这个版本编译的时候go的版本是多少。

大于等于1.23.2就行

https://docs.pingcap.com/zh/tidb/stable/tidb-functions#tidb_version

GoVersion: go1.21.10

1 个赞

GoVersion: go1.21.13,像是这个bug

1 个赞

GoVersion升级版本吧