kvserver: unquiesce proposal always errors #100400
Labels
branch-master
Failures and bugs on the master branch.
branch-release-23.1
Used to mark GA and release blockers, technical advisories, and bugs for 23.1
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
C-performance
Perf of queries or internals. Solution not expected to change functional behavior.
GA-blocker
When we unquiesce a Raft group we submit an empty proposal:
cockroach/pkg/kv/kvserver/replica_raft_quiesce.go
Line 91 in 76afb00
However, this proposal always results in an error, because its
ProposerLeaseSequence
is always 0:cockroach/pkg/kv/kvserver/kvserverbase/forced_error.go
Lines 193 to 197 in 736a67e
The construction of such errors has a non-negligible cost. During expiration-based lease testing with eager lease extensions, on an idle cluster with 20.000 lease extensions every 3 seconds, these accounted for 10% of CPU usage.
There is a related TODO here:
cockroach/pkg/kv/kvserver/raftlog/entry.go
Lines 188 to 190 in 4df47f5
We should treat these proposals as noops, similarly to what we already do here:
cockroach/pkg/kv/kvserver/kvserverbase/forced_error.go
Lines 97 to 108 in 736a67e
This code was introduced recently in #76126, so it may be a new issue in 23.1. I'm therefore marking it as a GA blocker.
Jira issue: CRDB-26411
The text was updated successfully, but these errors were encountered: