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

databendlabs / openraft / 28227196545
87%

Build:
DEFAULT BRANCH: main
Ran 26 Jun 2026 08:45AM UTC
Jobs 1
Files 264
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

26 Jun 2026 08:40AM UTC coverage: 86.96% (+0.04%) from 86.921%
28227196545

push

github

drmingdrmer
fix: reject stale transfer-leader target election

# Summary

Prevent a transfer target from starting a leadership-transfer election
before it has flushed the leader's expected log state, and return a
non-fatal transfer response when the target is not ready.

# Details

Transfer-leader requests now carry the leader's expected last log id.
The target waits for matching flushed progress and reports
`LogNotFlushed` or `VoteChanged` instead of blindly submitting an
election.

The transfer-leader network and public Raft APIs now return
`TransferLeaderResponse`, so callers can distinguish delivery failures
from transfer rejection. `Candidate::grant_by()` also treats votes from
nodes outside the quorum progress as ignored rather than panicking.

A regression test covers the promoted-learner window from issue #1805,
where the leader already sees a learner as a voter but the target has
not replicated its promotion log yet.

- Fix: #1805

88 of 97 new or added lines in 6 files covered. (90.72%)

5 existing lines in 2 files now uncovered.

16925 of 19463 relevant lines covered (86.96%)

160865.54 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
95.58
0.41% openraft/src/raft/api/protocol.rs
3
95.0
-5.0% openraft/src/proposer/candidate.rs
1
89.83
0.74% openraft/src/network/v2/network.rs

Coverage Regressions

Lines Coverage ∆ File
3
71.43
-14.29% openraft/src/raft/message/transfer_leader.rs
2
95.92
-1.36% openraft/src/replication/stream_state.rs
Jobs
ID Job ID Ran Files Coverage
1 28227196545.1 26 Jun 2026 08:44AM UTC 264
86.96
GitHub Action Run
Source Files on build 28227196545
  • Tree
  • List 264
  • Changed 10
  • Source Changed 7
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28227196545
  • d000ee20 on github
  • Prev Build on main (#28210692020)
  • Next Build on main (#28228617856)
  • 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