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

databendlabs / openraft / 29141298191
87%

Build:
DEFAULT BRANCH: main
Ran 11 Jul 2026 05:34AM 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 05:26AM UTC coverage: 87.085% (+0.05%) from 87.031%
29141298191

push

github

drmingdrmer
fix: send snapshot to a follower behind a fully-purged log

# Summary

When the leader had purged its entire log (`purge_upto == last_log_id`)
and a follower's progress was freshly reset (`matching = None`),
`next_send` returned `Err(Inflight::None)` on every call -- never
probing, never reaching the snapshot branch -- so the follower could
never converge until a new entry was proposed. It now sends a snapshot
in that dead-end.

# Details

- Reorganize the decision logic into two explicit regimes, probing and
  pipeline, plus two named snapshot conditions, so each branch states its
  own precondition instead of leaving it implied by clamp arithmetic.
- The fix lives in the probing regime: when the clamped send range
  collapses to empty (`start == end`), the leader is fully purged and the
  probe can carry no entry, so send a snapshot instead of reporting
  "nothing to replicate". The pipeline path (`LogsSince`) is untouched, so
  a follower legitimately matched at the purge boundary still streams its
  tail rather than taking a needless snapshot.
- Add `test_next_send_fully_purged_unknown_follower` covering the
  fully-purged, unknown-matching dead-end.

- Fix: #1828

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

1 existing line in 1 file now uncovered.

17471 of 20062 relevant lines covered (87.09%)

158073.92 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 29141298191.1 11 Jul 2026 05:34AM UTC 265
87.09
GitHub Action Run
Source Files on build 29141298191
  • Tree
  • List 265
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29141298191
  • afd6508b on github
  • Prev Build on main (#29099103489)
  • Next Build on main (#29145573017)
  • 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