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

databendlabs / openraft / 28652084830
87%

Build:
DEFAULT BRANCH: main
Ran 03 Jul 2026 09:41AM 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

03 Jul 2026 09:33AM UTC coverage: 87.02% (-0.02%) from 87.039%
28652084830

push

github

drmingdrmer
fix: return an error instead of hanging on a dropped responder

# Summary

When a response channel closes while RaftCore is still running -- for example a
state machine drops an ApplyResponder without calling send() -- recv_msg used to
join RaftCore to fetch its stop error. A healthy core never finishes, so the
caller (e.g. client_write) hung forever. recv_msg now bounds that wait and
returns Fatal::Stopped when RaftCore is still running.

# Details

- wait_core_stopped detects a real stop by observing the metrics watch channel,
  without joining (and thus consuming) RaftCore. get_core_stop_error is only
  called once a stop is confirmed, so the bounded wait never cancels
  join_core_task mid-flight -- which would strand CoreState in Joining and panic
  a later caller through unreachable!().
- The wait is bounded by RECV_CORE_STOP_TIMEOUT (1s). A real stop surfaces almost
  immediately: RaftCore reports it in metrics and drops the metrics sender as its
  task ends, including on panic.

- Ref: #1816

15 of 19 new or added lines in 1 file covered. (78.95%)

5 existing lines in 3 files now uncovered.

17062 of 19607 relevant lines covered (87.02%)

159512.44 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
82.93
-1.69% openraft/src/raft/raft_inner.rs

Coverage Regressions

Lines Coverage ∆ File
3
87.1
-3.23% openraft/src/core/heartbeat/worker.rs
1
92.61
-0.1% openraft/src/core/raft_core.rs
1
83.33
0.0% openraft/src/metrics/serde_instant.rs
Jobs
ID Job ID Ran Files Coverage
1 28652084830.1 03 Jul 2026 09:41AM UTC 264
87.02
GitHub Action Run
Source Files on build 28652084830
  • Tree
  • List 264
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28652084830
  • 1d5cc706 on github
  • Prev Build on main (#28648363225)
  • Next Build on main (#28675118548)
  • 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