Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: propose empty entry on unquiescence
During Raft unquiescence, an empty command is proposed to wake the Raft leader. However, this empty command was encoded as a regular Raft command with its own command ID and an empty payload. Meanwhile, the downstream Raft application expects such noop commands to be entirely empty (i.e. the entire Raft entry is empty), rather than an entry with an empty payload. This caused it to interpret the command as having a `ProposerLeaseSequence` of 0 and return a `NotLeaseHolderError` rather than considering it a noop. Construction and processing of this error has a non-negligible cost when unquiescing large numbers of ranges. This patch instead proposes an empty entry on unquiescence. Epic: none Release note: None
- Loading branch information