We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make config EnableForwarding set to true, which is enable forwarding.
EnableForwarding
In the following case, suppose the region leader is in store1.
store1
ca = replicaSelectorAccessPathCase{ reqType: tikvrpc.CmdPrewrite, readType: kv.ReplicaReadLeader, accessErr: []RegionErrorType{DeadLineExceededErr, NotLeaderErr},
expect: &accessPathResult{ accessPath: []string{ "{addr: store1, replica-read: false, stale-read: false}", "{addr: store2, replica-read: false, stale-read: false, forward_addr: store1}", "{addr: store3, replica-read: false, stale-read: false}", }, respErr: "", respRegionError: nil, },
expect: &accessPathResult{ accessPath: []string{ "{addr: store1, replica-read: false, stale-read: false}", "{addr: store2, replica-read: false, stale-read: false, forward_addr: store1}", }, respErr: "", respRegionError: fakeEpochNotMatch, },
The replica selector logic is:
DeadLineExceededErr
NotLeaderErr
fakeEpochNotMatch
But maybe we can try remain replica which in store3.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue
1. Minimal reproduce step
Make config
EnableForwarding
set to true, which is enable forwarding.In the following case, suppose the region leader is in
store1
.2. What did you expect to see?
3. What did you see instead?
The replica selector logic is:
DeadLineExceededErr
, since store1 is unreachable.NotLeaderErr
.fakeEpochNotMatch
region error to up layer.But maybe we can try remain replica which in store3.
The text was updated successfully, but these errors were encountered: