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

databendlabs / openraft / 24718144418
91%
main: 87%

Build:
Build:
LAST BUILD BRANCH: release-0.10
DEFAULT BRANCH: main
Ran 21 Apr 2026 10:56AM UTC
Jobs 1
Files 150
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

21 Apr 2026 10:45AM UTC coverage: 90.525% (+0.01%) from 90.514%
24718144418

push

github

drmingdrmer
Fix: gate io-state snapshot update on engine snapshot advancement

Two back-to-back `Raft::trigger().snapshot()` calls at the same
`last_applied` tripped `debug_assert!(log_id > self.snapshot)` in
`IOState::update_snapshot`. The duplicate build completes,
`SnapshotHandler::update_snapshot` returns `false` (no advancement),
but `raft_core` was calling `IOState::update_snapshot` unconditionally
with the equal log id.

Propagate the existing `bool` from `SnapshotHandler::update_snapshot`
out of `Engine::finish_building_snapshot` and only update the io-state
snapshot cursor when the engine actually advanced. The strict `>`
invariant in `IOState::update_snapshot` is preserved — the caller now
honors the information the handler already returns.

Changes:
- `Engine::finish_building_snapshot` returns `bool` (was `()`).
- `raft_core.rs` BuildSnapshot handler gates `io_state.update_snapshot`
  on the returned bool.

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

2 existing lines in 1 file now uncovered.

9717 of 10734 relevant lines covered (90.53%)

7840.88 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
91.14
-2.53% openraft/src/core/tick.rs
Jobs
ID Job ID Ran Files Coverage
1 24718144418.1 21 Apr 2026 10:56AM UTC 150
90.53
GitHub Action Run
Source Files on build 24718144418
  • Tree
  • List 150
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24718144418
  • 253c31c1 on github
  • Prev Build on release-0.9 (#24664696795)
  • Next Build on release-0.9 (#24721373492)
  • 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