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

databendlabs / openraft / 19390618212
88%

Build:
DEFAULT BRANCH: main
Ran 15 Nov 2025 01:41PM UTC
Jobs 1
Files 217
Run time 5min
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.054% (+0.001%) from 92.053%
19390618212

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%)

1 existing line in 1 file now uncovered.

12882 of 13994 relevant lines covered (92.05%)

154487.39 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
Jobs
ID Job ID Ran Files Coverage
1 19390618212.1 15 Nov 2025 01:41PM UTC 217
92.05
GitHub Action Run
Source Files on build 19390618212
  • Tree
  • List 217
  • Changed 7
  • Source Changed 6
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19390618212
  • 2bdfae5d on github
  • Prev Build on main (#19358640636)
  • Next Build on main (#19391618405)
  • 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