kv: don't return ReplicaCorruptionError from commit trigger evaluation due to context cancellation #114442
Labels
A-kv-distribution
Relating to rebalancing and leasing.
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-kv
KV Team
We currently wrap any error from
splitTrigger
ormergeTrigger
evaluation with aReplicaCorruptionError
. This is incorrect in the case of a context cancellation error, which is possible because request evaluation runs before raft, in the client's context.We should return the errors directly in these cases, without wrapping them in corruption errors. Something like:
Jira issue: CRDB-33515
The text was updated successfully, but these errors were encountered: