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

databendlabs / openraft / 23351530562
86%

Build:
DEFAULT BRANCH: main
Ran 20 Mar 2026 04:12PM 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

20 Mar 2026 04:00PM UTC coverage: 86.15% (+0.04%) from 86.113%
23351530562

push

github

drmingdrmer
feat: add `committed` field to `RaftMetrics` and `RaftDataMetrics`

`RaftMetrics` exposed log state fields (`last_log_index`, `last_applied`,
`snapshot`, `purged`) but was missing `committed` — the last log ID this
node knows to be safe for local application. This is the **local
committed** value, which may lag behind the cluster-committed frontier
due to network delays or out-of-order RPC delivery. Internally,
`committed` was already tracked via `RaftState::committed()`; it just
was not surfaced in metrics.

Changes:
- Add `committed: Option<LogIdOf<C>>` to `RaftMetrics` and `RaftDataMetrics`
- Add `Metric::Committed` variant with `PartialEq`/`PartialOrd` support
- Add `set_committed_index()` to `MetricsRecorder` trait and `forward_metrics()`
- Add `Wait::committed_index()` and `Wait::committed_index_at_least()`
- Add `openraft.log.index.committed` gauge in OpenTelemetry integration
- Add unit tests for all new public items

69 of 71 new or added lines in 7 files covered. (97.18%)

9 existing lines in 5 files now uncovered.

16004 of 18577 relevant lines covered (86.15%)

149000.58 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
72.73
-7.27% openraft/src/metrics/metric_display.rs
1
60.87
0.2% openraft/src/metrics/raft_metrics.rs

Coverage Regressions

Lines Coverage ∆ File
3
85.25
12.52% openraft/src/metrics/metric.rs
2
96.86
-0.9% openraft/src/replication/mod.rs
2
93.39
-1.65% openraft/src/replication/stream_state.rs
1
72.73
-7.27% openraft/src/metrics/metric_display.rs
1
83.33
0.0% openraft/src/metrics/serde_instant.rs
Jobs
ID Job ID Ran Files Coverage
1 23351530562.1 20 Mar 2026 04:12PM UTC 260
86.15
GitHub Action Run
Source Files on build 23351530562
  • Tree
  • List 260
  • Changed 11
  • Source Changed 7
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23351530562
  • c63b33a8 on github
  • Prev Build on main (#23290677096)
  • Next Build on main (#23353455513)
  • 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