add replica selector init failed reason #988
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
before:
[2023/09/21 14:35:50.702 +08:00] [INFO] [region_request.go:1522] ["throwing pseudo region error due to no replica available"] [conn=1887493856] [session_alias=] [req-ts=444406212641423730] [req-type=Cop] [region="{ region id: 186911575, ver: 832, confVer: 407 }"] [replica-read-type=leader] [stale-read=false] [request-sender="{rpcError:<nil>,replicaSelector: replicaSelector{selectorStateStr: nil, cacheRegionIsValid: unknown, replicaStatus: []}}"] [retry-times=0] [total-backoff-ms=0] [total-backoff-times=0] [max-exec-timeout-ms=60000] [total-region-errors=]
after
[2023/09/21 19:07:34.787 +08:00] [INFO] [region_request.go:1533] ["throwing pseudo region error due to no replica available"] [conn=3749708330] [session_alias=] [req-ts=444411269215682567] [req-type=Cop] [region="{ region id: 8580178, ver: 192, confVer: 401 }"] [replica-read-type=leader] [stale-read=false] [request-sender="{rpcError:cache region is invalid,need synced:false,ttl expired:false,replicaSelector: replicaSelector{selectorStateStr: nil, cacheRegionIsValid: unknown, replicaStatus: []}}"] [retry-times=0] [total-backoff-ms=0] [total-backoff-times=0] [max-exec-timeout-ms=60000] [total-region-errors=]