hashicorp / hashicorp/raft

automatic Apply forward to leader?

Open
#128 31 comments 16 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
9.1k
Forks
1.1k
Avg merge
3h 27m
Merged PRs (30d)
2

Description

It's not possible to call Raft.Apply on any node that isn't the leader.
This forces implementations to forward the message to the
leader if a non-leader wants to apply a log message.

Given that the Raft already has connectivity to the peers,
why not make this automatic, so Apply could be run on non-leaders
too?

Contributor guide

Open the contributing guide

Research direction

Start by reading the Raft.Apply entry point and the issue discussion to understand the current leader-only behavior and the proposed forwarding semantics. Define what successful forwarding and failure should mean for callers, then verify the behavior across leader and non-leader nodes.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.