Skip to content

kvserver: factor out log storage to a package #91979

@pav-kv

Description

@pav-kv

Currently the Raft log storage is tightly coupled with Replica and log entry application. See Replica.handleRaftReadyRaftMuLocked.

To pave the way towards separating Raft log storage from the rest of the storage, we need to first untangle the current log storage logic into separate types/packages.

This includes write and read paths, notably:

  • reading entries, term, etc
  • appending entries

Eventually, we will arrive at a subset of raft.Storage, and will be able to promote a split at the etcd/raft level too, after better understanding what it would include.

Epic: CRDB-220

Jira issue: CRDB-21505

Metadata

Metadata

Assignees

Labels

A-kv-replicationRelating to Raft, consensus, and coordination.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions