When a leaseholder replica doesn't hold the lease, replication flow control v1 skips admission via replication flow control (here) because the leader maintains flow token state.
However, in replication flow control v1, we also skip admitting via the StoreWorkQueue -- so no AC backpressure is applied.
Discussed internally. This is a rare bug but a quick fix. We will pick this up once other higher priority items are complete. The AdmitKVWork function in general lacks explicit tests, we should fix that too.
When a leaseholder replica doesn't hold the lease, replication flow control v1 skips admission via replication flow control (here) because the leader maintains flow token state.
However, in replication flow control v1, we also skip admitting via the
StoreWorkQueue
-- so no AC backpressure is applied.Jira issue: CRDB-42303