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

databendlabs / openraft / 22515272820
88%

Build:
DEFAULT BRANCH: main
Ran 28 Feb 2026 06:34AM UTC
Jobs 1
Files 259
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

28 Feb 2026 06:21AM UTC coverage: 87.731% (-0.06%) from 87.794%
22515272820

push

github

drmingdrmer
change: in 0.10.0: propagate `Fatal` in `stream_append()`

`stream_append()` previously dropped Fatal errors silently when RaftCore
stopped — it logged and returned `None`, ending the stream without
surfacing the actual error. Now the stream yields
`Result<StreamAppendResult, Fatal>`, properly propagating Fatal errors
while keeping `StreamAppendResult` unchanged as the API-level type.

`RaftInner` is reintroduced in the stream unfold state to call
`get_core_stop_error()` when the oneshot channel fails, mirroring
the non-streaming `append_entries` path.

Changes:
- Move `RaftError` to `errors/raft_error.rs` and `Fatal` to `errors/fatal.rs`
- Implement `Peel` for `RaftError` to peel off `Fatal`, leaving API error `E`
- Update gRPC example `stream_append` handler to map `Fatal` to `Status::internal`

23 of 60 new or added lines in 4 files covered. (38.33%)

92 existing lines in 12 files now uncovered.

15860 of 18078 relevant lines covered (87.73%)

146779.71 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
85.29
-9.3% openraft/src/raft/stream_append.rs
34
26.09
openraft/src/errors/raft_error.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
99.38
0.0% openraft/src/engine/handler/following_handler/mod.rs
1
99.2
0.01% openraft/src/engine/handler/vote_handler/mod.rs
1
85.29
-9.3% openraft/src/raft/stream_append.rs
2
95.0
0.0% openraft/src/raft/api/protocol.rs
2
93.39
-1.65% openraft/src/replication/stream_state.rs
3
90.77
-4.62% openraft/src/raft/raft_inner.rs
5
80.95
0.2% openraft/src/engine/command.rs
7
98.26
-0.04% openraft/src/engine/engine_impl.rs
8
77.78
-15.56% openraft/src/raft/message/append_entries_response.rs
8
46.67
46.67% openraft/src/raft/message/stream_append_error.rs
18
91.6
0.0% openraft/src/raft/mod.rs
36
91.83
0.01% openraft/src/core/raft_core.rs
Jobs
ID Job ID Ran Files Coverage
1 22515272820.1 28 Feb 2026 06:34AM UTC 259
87.73
GitHub Action Run
Source Files on build 22515272820
  • Tree
  • List 259
  • Changed 50
  • Source Changed 49
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22515272820
  • dcf39766 on github
  • Prev Build on main (#22209712482)
  • Next Build on main (#22519098894)
  • 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