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

databendlabs / openraft / 19390656609
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: release-0.10
DEFAULT BRANCH: main
Ran 15 Nov 2025 01:44PM UTC
Jobs 1
Files 217
Run time 9min
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

15 Nov 2025 01:29PM UTC coverage: 92.132% (+0.08%) from 92.053%
19390656609

push

github

drmingdrmer
fix: prevent heartbeat-induced log reversion panic

Use per-follower matching log id in heartbeat `prev_log_id` instead of
committed log id to prevent false reversion detection when followers
fall behind.

Problem:

When using committed log id `c` as `prev_log_id` in heartbeat
AppendEntries, the follower may not have `c` yet and returns conflict.
If this conflict response arrives after the follower successfully
replicates `c`, the leader updates its matching cursor to `c` and
incorrectly interprets the delayed conflict as log reversion.

The root cause is the leader using a non-existent log id as
`prev_log_id`.

Solution:

Use the known matching log id (last confirmed replicated) as
`prev_log_id` in heartbeats, eliminating false conflicts.

Changes:
- Add matching field to HeartbeatEvent
- Change heartbeat workers to per-follower channels
- Include matching log id from progress in heartbeat events
- Use matching log id as `prev_log_id` in heartbeat append-entries
- Add test reproducing issue #1500

- Fix: #1500

44 of 46 new or added lines in 4 files covered. (95.65%)

2 existing lines in 2 files now uncovered.

12893 of 13994 relevant lines covered (92.13%)

155043.24 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
89.74
0.1% openraft/src/core/raft_core.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
83.33
0.0% openraft/src/metrics/serde_instant.rs
1
85.12
0.0% openraft/src/replication/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 19390656609.1 15 Nov 2025 01:44PM UTC 217
92.13
GitHub Action Run
Source Files on build 19390656609
  • Tree
  • List 217
  • Changed 9
  • Source Changed 6
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19390656609
  • 2bdfae5d on github
  • Prev Build on main (#19358640636)
  • Next Build on release-0.10 (#19392786779)
  • 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