kvserver: admin scatter should retry processing on a descriptor change error #124522
Labels
A-kv-distribution
Relating to rebalancing and leasing.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-kv
KV Team
Projects
Is your feature request related to a problem? Please describe.
AdminScatter
currently only retries processing upon encountering a snapshot error:cockroach/pkg/kv/kvserver/replica_command.go
Lines 4158 to 4164 in 2fc6cd0
It is commonly the case that splits will interleave scatters, as callers attempt to distribute the keyspace before some operation, such as RESTORE or an index backfill.
When a split races with the scatter and changes the descriptor whilst a scatter is being processed, the scatter will fail.
Describe the solution you'd like
Retry descriptor change errors, similar to snapshot errors for admin scatter.
Jira issue: CRDB-38942
The text was updated successfully, but these errors were encountered: