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

databendlabs / openraft / 29146087220
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: release-0.10
DEFAULT BRANCH: main
Ran 11 Jul 2026 08:28AM 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

11 Jul 2026 08:02AM UTC coverage: 87.056% (-0.03%) from 87.085%
29146087220

push

github

drmingdrmer
fix: re-arm snapshot policy after an in-flight build completes

# Summary

A `SnapshotPolicy::LogsSinceLast` trigger that fired while a snapshot build was
already in flight was dropped, yet the policy still recorded the attempt. Once
the in-flight build finished nothing re-triggered a build, so on a quiescent
node the snapshot could stay arbitrarily far behind `committed` -- stalling
policy-gated log purge with it. The policy now records an attempt only when a
build is actually queued, so the dropped trigger re-fires on the first routine
check after the in-flight build completes.

# Details

- `RaftCore::trigger_snapshot` now reports whether a build was queued, and
  `trigger_routine_actions` advances `snapshot_tried_at` only when it was. A
  trigger dropped because a build is already in progress no longer advances the
  baseline `should_snapshot` compares against, so it stops suppressing the
  policy. Builds deferred by the state machine still record the attempt,
  preserving their existing threshold debounce.

- Add a deterministic single-node regression test: it holds one build in flight
  (which pins `applied`), drives `committed` past the threshold a second time
  with fire-and-forget writes, and asserts the snapshot converges to `committed`
  once the build completes.

- Fix: #1829

5 of 5 new or added lines in 1 file covered. (100.0%)

6 existing lines in 3 files now uncovered.

17466 of 20063 relevant lines covered (87.06%)

157939.39 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
92.45
-0.2% openraft/src/core/raft_core.rs
2
96.65
-0.84% openraft/src/replication/mod.rs
2
95.92
-1.36% openraft/src/replication/stream_state.rs
Jobs
ID Job ID Ran Files Coverage
1 29146087220.1 11 Jul 2026 08:28AM UTC 265
87.06
GitHub Action Run
Source Files on build 29146087220
  • Tree
  • List 265
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29146087220
  • d0e245a2 on github
  • Prev Build on main (#29141298191)
  • Next Build on release-0.10 (#29152726939)
  • 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