Skip to content

storage: raft snapshot queue inefficiencies #31947

@tbg

Description

@tbg

When Raft wants a snapshot (MsgSnap), we (on the leader) .Add the range to the raft snapshot queue. However, there are various code paths that can lead to the range not receiving a snapshot "right away" (purgatory, max size limitation). If that happens, the Raft group is stuck in an awkward state until the scanner picks up the range again and hopefully does give it a snapshot.

This setup seems risky and we may want to address the above points so that the Raft-initiated snapshots have no chance of being lost.

Metadata

Metadata

Assignees

Labels

A-kv-replicationRelating to Raft, consensus, and coordination.C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.X-stale

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions