cowsql / raft

Asynchronous C implementation of the Raft consensus protocol
https://raft.readthedocs.io
Other
45 stars 6 forks source link

replication: Honor capacity threshold #155

Closed freeekanayaka closed 7 months ago

freeekanayaka commented 7 months ago

If a capacity threshold is set, the leader will reject entries if the remaining capacity is below the configured value.

codecov[bot] commented 7 months ago

Codecov Report

Attention: 46 lines in your changes are missing coverage. Please review.

Comparison is base (5961661) 73.98% compared to head (734cc7e) 74.11%.

Files Patch % Lines
src/legacy.c 21.42% 6 Missing and 5 partials :warning:
src/uv_append.c 30.76% 8 Missing and 1 partial :warning:
src/convert.c 76.92% 2 Missing and 4 partials :warning:
src/uv_prepare.c 88.00% 2 Missing and 4 partials :warning:
src/uv_encoding.c 66.66% 2 Missing and 3 partials :warning:
src/configuration.c 70.00% 1 Missing and 2 partials :warning:
src/client.c 90.90% 0 Missing and 2 partials :warning:
src/raft.c 92.30% 1 Missing and 1 partial :warning:
src/uv.c 93.93% 0 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #155 +/- ## ========================================== + Coverage 73.98% 74.11% +0.13% ========================================== Files 52 52 Lines 10089 10218 +129 Branches 2449 2469 +20 ========================================== + Hits 7464 7573 +109 - Misses 1271 1281 +10 - Partials 1354 1364 +10 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.