Skip to content

storage: Raft log is still read on elections #26946

@bdarnell

Description

@bdarnell

etcd-io/etcd#9073 did not actually do what was intended: it still reads the entire raft log even though it now only needs the last entry. The last index is known so the call to entries needs to be adjusted so we only load the data we need.

This change should be backported to release-2.0 because we intended for this problem to be fixed in 2.0, and it's showing up in #26830.

Metadata

Metadata

Assignees

Labels

A-kv-replicationRelating to Raft, consensus, and coordination.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions