storage: reproposals generated after range creation #33466
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)
C-investigation
Further steps needed to qualify. C-label will change.
C-performance
Perf of queries or internals. Solution not expected to change functional behavior.
no-issue-activity
X-stale
We've discovered in #33453 that reproposals are quite likely after a range is created because the first message that pops out of Raft is an empty message indicating a leadership change, and that causes every other pending proposal to be re-proposed. Some of these reproposals are unnecessary, as the proposals would have made it to the right leader just fine.
We've speculated that this might be a significant slowdown for restores, which propose large commands immediately after ranges are created.
We should find a way to improve things - perhaps not re-proposing too eagerly or not re-proposing large messages when the reproposal reason is "new leader".
cc @bdarnell in case you've got an opinion
Jira issue: CRDB-4687
The text was updated successfully, but these errors were encountered: