Skip to content

[Raft] Initialization and configuration of consensus#1473

Merged
barroco merged 1 commit into
interuss:masterfrom
Orbitalize:add_consensus_logic_1
Jun 16, 2026
Merged

[Raft] Initialization and configuration of consensus#1473
barroco merged 1 commit into
interuss:masterfrom
Orbitalize:add_consensus_logic_1

Conversation

@MariemBaccari

@MariemBaccari MariemBaccari commented May 20, 2026

Copy link
Copy Markdown
Contributor

This PR is part of the chain #1470 -> #1473 -> #1474 to address the issue #1463.
To keep it readable, it only contains part of the consensus logic with some stub functions to be implemented in a follow-up PR.
It defines the default configuration for Raft with similar values as etcd (to be tuned later).
It also completes the initialization of consensus and the handleReady() goroutine.

@MariemBaccari MariemBaccari changed the title [Raft] Add part of consensus logic [Raft] Add part 1 of consensus logic May 20, 2026
@MariemBaccari MariemBaccari marked this pull request as ready for review May 20, 2026 14:29
@MariemBaccari MariemBaccari force-pushed the add_consensus_logic_1 branch 2 times, most recently from 034d8f2 to 01747d1 Compare May 22, 2026 08:19
Comment thread pkg/raftstore/store.go
@MariemBaccari MariemBaccari changed the title [Raft] Add part 1 of consensus logic [Raft] Initialization and configuration of consensus Jun 2, 2026
@MariemBaccari MariemBaccari force-pushed the add_consensus_logic_1 branch 3 times, most recently from 9857b0a to a29eb0b Compare June 8, 2026 14:50

@barroco barroco left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial review

Comment thread pkg/raftstore/consensus/config.go Outdated
Comment thread pkg/raftstore/consensus/consensus.go Outdated
Comment thread pkg/raftstore/consensus/consensus.go Outdated
Comment thread pkg/raftstore/params/params.go
@MariemBaccari MariemBaccari force-pushed the add_consensus_logic_1 branch 2 times, most recently from 6e87fff to d190965 Compare June 15, 2026 15:20

@barroco barroco left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MariemBaccari thanks a lot for this PR. You will find additional comments and suggestions. Don't hesitate if you have any questions.

Comment thread pkg/raftstore/consensus/consensus.go
Comment thread pkg/raftstore/consensus/consensus.go Outdated
Comment thread pkg/raftstore/consensus/consensus.go Outdated
Comment thread pkg/raftstore/consensus/consensus.go
Comment thread pkg/raftstore/consensus/consensus.go Outdated
Comment thread pkg/raftstore/consensus/consensus.go Outdated
Comment thread pkg/raftstore/consensus/consensus.go Outdated
Comment thread pkg/raftstore/consensus/consensus.go Outdated
@MariemBaccari MariemBaccari force-pushed the add_consensus_logic_1 branch 2 times, most recently from 223f155 to 94cf0aa Compare June 16, 2026 07:47
@MariemBaccari MariemBaccari requested a review from barroco June 16, 2026 08:00
@MariemBaccari MariemBaccari force-pushed the add_consensus_logic_1 branch 2 times, most recently from 1eea1a9 to cb29be1 Compare June 16, 2026 11:38
@MariemBaccari MariemBaccari force-pushed the add_consensus_logic_1 branch from cb29be1 to 1d8b3f0 Compare June 16, 2026 12:54
@barroco barroco merged commit 0abcc56 into interuss:master Jun 16, 2026
12 checks passed
@MariemBaccari MariemBaccari deleted the add_consensus_logic_1 branch June 30, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants