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

databendlabs / openraft / 14996590877
88%

Build:
DEFAULT BRANCH: main
Ran 13 May 2025 12:33PM UTC
Jobs 1
Files 184
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

13 May 2025 12:05PM UTC coverage: 90.507% (+0.3%) from 90.228%
14996590877

push

github

ariesdevil
Change: Add read_policy parameter to ensure_linearizable and get_read_log_id

This commit adds a `read_policy` parameter to the `ensure_linearizable` and `get_read_log_id` method, allowing users to explicitly specify whether to use `ReadIndex` or `LeaseRead` policy for linearizable reads.

This change enables fine-grained control over read consistency vs performance trade-offs on a per-request basis, rather than being limited to the global configuration.

- `ReadIndex` provides strongest consistency guarantees by confirming leadership with a quorum but incurs higher latency.

- `LeaseRead` uses leadership lease to avoid network round-trips for better performance but slightly weaker consistency guarantees.

Upgrade tip:

This is a breaking change. To update your code, you need to provide the `read_policy` parameter when calling `ensure_linearizable()` and `get_read_log_id()`.

2 of 2 new or added lines in 1 file covered. (100.0%)

9772 of 10797 relevant lines covered (90.51%)

98145.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 14996590877.1 13 May 2025 12:33PM UTC 184
90.51
GitHub Action Run
Source Files on build 14996590877
  • Tree
  • List 184
  • Changed 10
  • Source Changed 4
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14996590877
  • 9bc9885c on github
  • Prev Build on release-0.10 (#14932373826)
  • Next Build on main (#15014777353)
  • 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