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

databendlabs / openraft / 14996590877 / 1
88%
main: 88%

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

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()`.

9772 of 10797 relevant lines covered (90.51%)

98145.63 hits per line

Source Files on job 14996590877.1
  • Tree
  • List 184
  • Changed 10
  • Source Changed 4
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 14996590877
  • 9bc9885c on github
  • Prev Job for on main (#14932373826.1)
  • Next Job for on main (#15014777353.1)
  • 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