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

databendlabs / openraft / 28119054731
87%

Build:
DEFAULT BRANCH: main
Ran 24 Jun 2026 06:04PM 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

24 Jun 2026 05:56PM UTC coverage: 86.886% (+0.1%) from 86.789%
28119054731

push

github

drmingdrmer
fix: stop replication after storage read error

# Summary

Replication now treats a storage read error while generating
AppendEntries as fatal to the replication task, instead of letting
stream exhaustion look like a successful send and retrying the payload.

# Details

Add an integration regression test for issue #1795 that injects a
one-shot memstore read error while a leader replicates a live suffix
after a purged prefix. The test records whether the leader emits the
malformed retry with `prev_log_id=None` and non-empty entries.

Record a fatal marker in the stream state after reporting the storage
error to RaftCore. The owning replication loop checks this marker both
after stream setup and after response consumption so eager custom
streaming transports and the default lazy stream path both stop
immediately.

Add a debug assertion on the generated AppendEntries request to verify
that a non-empty entries vector starts exactly after its `prev_log_id`.

- Fixes #1795

41 of 45 new or added lines in 3 files covered. (91.11%)

6 existing lines in 3 files now uncovered.

16816 of 19354 relevant lines covered (86.89%)

166610.35 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
95.92
0.23% openraft/src/replication/stream_state.rs
1
96.49
-1.09% openraft/src/replication/mod.rs

Coverage Regressions

Lines Coverage ∆ File
3
86.96
-3.26% openraft/src/core/heartbeat/worker.rs
2
96.49
-1.09% openraft/src/replication/mod.rs
1
95.92
0.23% openraft/src/replication/stream_state.rs
Jobs
ID Job ID Ran Files Coverage
1 28119054731.1 24 Jun 2026 06:04PM UTC 264
86.89
GitHub Action Run
Source Files on build 28119054731
  • Tree
  • List 264
  • Changed 10
  • Source Changed 3
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28119054731
  • 19f2f037 on github
  • Prev Build on release-0.10 (#27958149192)
  • Next Build on main (#28148326580)
  • 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