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

databendlabs / openraft / 24352140252
86%

Build:
DEFAULT BRANCH: main
Ran 13 Apr 2026 03:37PM UTC
Jobs 1
Files 260
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

13 Apr 2026 03:26PM UTC coverage: 86.441% (-0.04%) from 86.483%
24352140252

push

github

drmingdrmer
refactor: add leader forwarding to gRPC example

Handle `ForwardToLeader` errors properly in the gRPC kv-memstore
example, so writes to non-leader nodes are automatically redirected
to the current leader instead of failing with a generic internal error.

Server side: use `decompose()` to match `ForwardToLeader` and return
`Status::unavailable` with the leader's address in a gRPC metadata
header (`x-openraft-leader-endpoint`).

Client side (test): add a `GrpcClient` wrapper that extracts the
leader endpoint from error metadata and retries, similar to the HTTP
example's `send_with_forwarding()`.

The test now writes via a non-leader node (node 2) to exercise and
verify the forwarding path.

- Fix: #1716

Thanks to @gtema for reporting the issue and pointing out that the
gRPC example was incomplete without forwarding support.

16327 of 18888 relevant lines covered (86.44%)

118371.11 hits per line

Coverage Regressions

Lines Coverage ∆ File
5
81.48
-18.52% openraft/src/core/sm/handle.rs
3
82.8
-3.23% openraft/src/replication/snapshot_transmitter.rs
Jobs
ID Job ID Ran Files Coverage
1 24352140252.1 13 Apr 2026 03:37PM UTC 260
86.44
GitHub Action Run
Source Files on build 24352140252
  • Tree
  • List 260
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24352140252
  • 7d9a5ffe on github
  • Prev Build on main (#24350907887)
  • Next Build on main (#24495167928)
  • 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