Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use raft read index to serve read only requests #159

Merged
merged 2 commits into from
May 14, 2022
Merged

Conversation

MrCroxx
Copy link
Owner

@MrCroxx MrCroxx commented May 14, 2022

As titled.

Ref: #126 .

@MrCroxx MrCroxx self-assigned this May 14, 2022
@codecov
Copy link

codecov bot commented May 14, 2022

Codecov Report

Merging #159 (6ca0919) into main (e33ce00) will increase coverage by 0.13%.
The diff coverage is 93.25%.

@@            Coverage Diff             @@
##             main     #159       /-   ##
==========================================
  Coverage   83.82%   83.96%    0.13%     
==========================================
  Files          84       85        1     
  Lines        8265     8386      121     
==========================================
  Hits         6928     7041      113     
- Misses       1337     1345        8     
Impacted Files Coverage Δ
wheel/src/components/command.rs 66.66% <66.66%> (-33.34%) ⬇️
wheel/src/components/fsm.rs 71.55% <86.95%> ( 1.88%) ⬆️
wheel/src/components/read_only_cmd_pool.rs 94.44% <94.44%> (ø)
wheel/src/worker/raft.rs 94.66% <97.95%> ( 0.52%) ⬆️
wheel/src/components/raft_manager.rs 82.05% <100.00%> ( 0.59%) ⬆️
wheel/src/lib.rs 90.98% <100.00%> ( 0.42%) ⬆️
storage/src/raft_log_store/block_cache.rs 91.66% <0.00%> (-2.09%) ⬇️
storage/src/utils/coding.rs 95.17% <0.00%> (-1.38%) ⬇️
client/src/client.rs 71.02% <0.00%> (-0.57%) ⬇️
storage/src/raft_log_store/log.rs 88.32% <0.00%> (-0.39%) ⬇️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e33ce00...6ca0919. Read the comment docs.

@MrCroxx MrCroxx merged commit 026b6d0 into main May 14, 2022
@MrCroxx MrCroxx deleted the xx/read-index branch May 14, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant