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

databendlabs / openraft / 20467363442
88%

Build:
DEFAULT BRANCH: main
Ran 23 Dec 2025 05:30PM UTC
Jobs 1
Files 250
Run time 2min
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

23 Dec 2025 05:18PM UTC coverage: 92.019% (+0.03%) from 91.993%
20467363442

push

github

drmingdrmer
fix: handle empty `limited_get_log_entries` gracefully instead of panicking

When `limited_get_log_entries()` returns an empty vector for a non-empty range,
which violates its API contract, the replication now treats it as a heartbeat
instead of panicking. A 500ms sleep is added to avoid a tight loop since the
log_id_range won't advance when no logs are returned.

Changes:
- Handle empty result in `read_log_entries()` by treating it as a heartbeat
- Add test infrastructure in memstore to simulate empty returns
- Add test `empty_limited_get_log_entries` to verify the fix

- Fix: #1601

19 of 19 new or added lines in 2 files covered. (100.0%)

5 existing lines in 2 files now uncovered.

15818 of 17190 relevant lines covered (92.02%)

163151.63 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
83.78
-5.41% openraft/src/storage/v2/raft_log_reader.rs
3
87.5
-4.17% openraft/src/core/sm/handle.rs
Jobs
ID Job ID Ran Files Coverage
1 20467363442.1 23 Dec 2025 05:30PM UTC 250
92.02
GitHub Action Run
Source Files on build 20467363442
  • Tree
  • List 250
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20467363442
  • f994c862 on github
  • Prev Build on main (#20463733463)
  • Next Build on main (#20484579726)
  • 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