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

databendlabs / openraft / 19726658363
88%

Build:
DEFAULT BRANCH: main
Ran 27 Nov 2025 05:59AM UTC
Jobs 1
Files 222
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

27 Nov 2025 05:46AM UTC coverage: 92.565% (+0.07%) from 92.499%
19726658363

push

github

drmingdrmer
refactor: decouple log replication from commit index update

This commit decouples the application of log entries from the commit
index update in `handle_append_entries_request()`.

In standard Raft, AppendEntries bundles log entries and committed index
together, requiring them to be processed atomically. If separated
improperly, a follower might mistakenly believe uncommitted local log
entries are committed.

In previous commits, we associated the committed log ID with a leader
ID, making it safe to process log replication and commit index updates
independently. This refactoring prepares for a future change where the
leader will use two separate streams to replicate log entries and
committed index to followers.

Changes:
- Change `handle_append_entries()` to return `()` instead of `bool`
- Call `update_committed()` unconditionally in `handle_append_entries_request()`
- Remove outdated TODO comment

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

2 existing lines in 1 file now uncovered.

13769 of 14875 relevant lines covered (92.56%)

155328.45 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
91.67
-8.33% openraft/src/core/sm/handle.rs
Jobs
ID Job ID Ran Files Coverage
1 19726658363.1 27 Nov 2025 05:59AM UTC 222
92.56
GitHub Action Run
Source Files on build 19726658363
  • Tree
  • List 222
  • Changed 5
  • Source Changed 2
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19726658363
  • 6b3aa096 on github
  • Prev Build on main (#19704339152)
  • Next Build on main (#19736997724)
  • 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