• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

databendlabs / openraft / 27147503550
87%

Build:
DEFAULT BRANCH: main
Ran 08 Jun 2026 03:18PM UTC
Jobs 1
Files 265
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Jun 2026 03:08PM UTC coverage: 86.673% (+0.1%) from 86.577%
27147503550

push

github

drmingdrmer
refactor: make Membership implement QuorumSet directly

# Summary

The leader and progress layer previously derived its quorum set by converting
the effective `Membership` into a `Joint` via `to_quorum_set()`. `Membership`
now implements `QuorumSet` itself, as the joint of its voter configs, and the
leader holds the membership directly. Quorum decisions are unchanged.

# Details

- `Membership` implements `QuorumSet` in a dedicated module: `is_quorum`
  requires a majority in every config and `ids` returns the voter union, which
  reproduces the previous `Joint`-based behavior exactly.
- `LeaderQuorumSet` becomes `Arc<Membership<NodeId, Node>>` instead of
  `Joint<NodeId, ...>`. The leader, candidate, and progress-rebuild paths now
  wrap the effective membership in an `Arc` rather than calling
  `to_quorum_set()`. Using `Arc` keeps the progress clone on a membership
  change a refcount bump instead of copying node metadata.
- Removes the now-unused `Membership::to_quorum_set()`.
- Consequence: the previously id-only leader/progress quorum type now carries
  the node type `N`, since `Arc<Membership>` includes the node map that quorum
  logic itself does not read.

51 of 51 new or added lines in 4 files covered. (100.0%)

1 existing line in 1 file now uncovered.

16493 of 19029 relevant lines covered (86.67%)

144895.69 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
83.33
0.0% openraft/src/metrics/serde_instant.rs
Jobs
ID Job ID Ran Files Coverage
1 27147503550.1 08 Jun 2026 03:18PM UTC 265
86.67
GitHub Action Run
Source Files on build 27147503550
  • Tree
  • List 265
  • Changed 8
  • Source Changed 4
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27147503550
  • 3300604f on github
  • Prev Build on main (#27088840927)
  • Next Build on main (#27149762323)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc