The kvnemesis validator's processOp method contains a mix of string matching (see resultIsErrorStr) and error type checking (e.g. kvserver.IsRetriableReplicationChangeError) code. We should push to switch more of these raw string checks into type checked error handling. This will force us to refine the KV interface and results in less fragile code.
Jira issue: CRDB-3039
The kvnemesis validator's
processOpmethod contains a mix of string matching (seeresultIsErrorStr) and error type checking (e.g.kvserver.IsRetriableReplicationChangeError) code. We should push to switch more of these raw string checks into type checked error handling. This will force us to refine the KV interface and results in less fragile code.Jira issue: CRDB-3039