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

databendlabs / openraft / 24647645135
91%
main: 87%

Build:
Build:
LAST BUILD BRANCH: release-0.10
DEFAULT BRANCH: main
Ran 20 Apr 2026 04:05AM UTC
Jobs 1
Files 150
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

20 Apr 2026 03:23AM UTC coverage: 90.43% (-0.009%) from 90.439%
24647645135

push

github

drmingdrmer
Fix: run raft-kv-rocksdb example APIs on Tokio runtime

The raft-kv-rocksdb example serves its HTTP API with `tide`, which
runs on `async-std`. Internally, `Raft` methods like `add_learner`,
`change_membership`, and `initialize` await `tokio::time::sleep` via
`Wait::metrics`. Polling `sleep` with no Tokio runtime installed on
the current thread panics with "there is no reactor running" —
breaking the cluster test on newer nightly toolchains.

Capture `tokio::runtime::Handle::current()` at app startup (while
still inside `#[tokio::main]`) and stash it on `App`. In each tide
handler that invokes raft, `tokio_handle.spawn(...)` the call so it
runs on the Tokio runtime, then `.await` the `JoinHandle` from the
async-std task. Read handlers that only touch the in-memory KV map
need no wrapping.

Changes:
- Add `tokio_handle: Handle` field to `App`
- Map `JoinHandle` errors to `tide::Error` with
  `StatusCode::InternalServerError` rather than propagating a panic

Cherry-picked from upstream commit 83c8176e.

9676 of 10700 relevant lines covered (90.43%)

7968.32 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
88.05
-0.15% openraft/src/core/raft_core.rs
Jobs
ID Job ID Ran Files Coverage
1 24647645135.1 20 Apr 2026 04:05AM UTC 150
90.43
GitHub Action Run
Source Files on build 24647645135
  • Tree
  • List 150
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24647645135
  • cffb1a99 on github
  • Prev Build on release-0.9 (#24551941694)
  • Next Build on release-0.9 (#24661569127)
  • 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