kvserver: improve suspect replica heuristics in replica GC queue #62075
Labels
A-kv-replication
Relating to Raft, consensus, and coordination.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
The
kvserver.replicaGCQueue
will normally check replicas against the main replica descriptor every 10 days, to see if it should be GCed. However, some replicas may be considered suspect (e.g. if they are a Raft candidate), in which case they are checked every second. These heuristics are currently pretty limited, and probably need to cover additional scenarios -- one example is a non-voting replica which has lost its leader, which currently isn't considered suspect.cockroach/pkg/kv/kvserver/replica_gc_queue.go
Lines 159 to 190 in 885eaec
Related to #61977.
The text was updated successfully, but these errors were encountered: