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

databendlabs / openraft / 28885911377
87%

Build:
DEFAULT BRANCH: main
Ran 07 Jul 2026 05:35PM 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

07 Jul 2026 05:27PM UTC coverage: 87.228% (-0.005%) from 87.233%
28885911377

push

github

drmingdrmer
test: tolerate the injected fatal in the 1795 replication test

# Summary

Fix a latent race in `storage_error_stops_replication` that made it fail
intermittently in CI. The test injects a one-shot storage read error and then
propagated the result of `add_learner` with `?`, but that injected error is by
design fatal to RaftCore, so `add_learner` can legitimately return it instead
of `Ok`.

# Details

The injected `limited_get_log_entries` error is read by the replication stream
to the new learner, reported to RaftCore as `Notification::StorageError`, and
converted into `Fatal::StorageError`, which stops the core and fails any
in-flight `add_learner` with the same error. The call therefore races the
shutdown: it returns `Ok` when the membership response wins and the injected
`StorageError` when the fatal wins. Discard the result instead of using `?`;
the assertion that replication never retried with a malformed AppendEntries is
the actual behavior under test and holds in both outcomes.

- Fixes #1795 test flakiness

17415 of 19965 relevant lines covered (87.23%)

158888.87 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
92.4
-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 28885911377.1 07 Jul 2026 05:35PM UTC 264
87.23
GitHub Action Run
Source Files on build 28885911377
  • Tree
  • List 264
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28885911377
  • bd628d5a on github
  • Prev Build on main (#28744024451)
  • Next Build on main (#28994232970)
  • 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