-
Notifications
You must be signed in to change notification settings - Fork 4.1k
kvnemesis: replace string matching with error type checks in validator #61319
Copy link
Copy link
Closed
Labels
A-kvAnything in KV that doesn't belong in a more specific category.Anything in KV that doesn't belong in a more specific category.A-testingTesting tools and infrastructureTesting tools and infrastructureC-cleanupTech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.Tech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.T-kvKV TeamKV TeamX-staleno-issue-activity
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-kvAnything in KV that doesn't belong in a more specific category.Anything in KV that doesn't belong in a more specific category.A-testingTesting tools and infrastructureTesting tools and infrastructureC-cleanupTech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.Tech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.T-kvKV TeamKV TeamX-staleno-issue-activity