MrCroxx / RunKV

[WIP] An experimental cloud-native distributed KV engine for OLTP workload.
MIT License
68 stars 7 forks source link

feat: replace openraft with async version raft-rs #121

Closed MrCroxx closed 2 years ago

MrCroxx commented 2 years ago

Replace dependency https://github.com/datafuselabs/openraft with https://github.com/mrcroxx/raft-rs (async branch).

Most new modules with components using raft-rs are named with _v2.

And the QPS of integration tests increases 20x than before with openraft.

Remove openraft deps later.

Ref: #88 #117 #118 #119

codecov[bot] commented 2 years ago

Codecov Report

Merging #121 (8cc3d0b) into main (0a7c67d) will increase coverage by 5.39%. The diff coverage is 80.60%.

@@            Coverage Diff             @@
##             main     #121      +/-   ##
==========================================
+ Coverage   73.26%   78.65%   +5.39%     
==========================================
  Files          72       85      +13     
  Lines        7294     9474    +2180     
==========================================
+ Hits         5344     7452    +2108     
- Misses       1950     2022      +72     
Impacted Files Coverage Δ
common/src/lib.rs 100.00% <ø> (ø)
common/src/log.rs 15.78% <0.00%> (-0.43%) :arrow_down:
storage/src/error.rs 14.28% <ø> (ø)
storage/src/lib.rs 100.00% <ø> (ø)
storage/src/lsm_tree/components/block.rs 95.32% <ø> (ø)
storage/src/raft_log_store_v2/error.rs 0.00% <0.00%> (ø)
wheel/src/components/lsm_tree.rs 84.21% <ø> (+24.88%) :arrow_up:
wheel/src/error.rs 0.00% <0.00%> (ø)
wheel/src/service.rs 14.25% <0.00%> (-56.18%) :arrow_down:
wheel/src/worker/kv.rs 46.15% <0.00%> (-15.39%) :arrow_down:
... and 37 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 0a7c67d...8cc3d0b. Read the comment docs.

MrCroxx commented 2 years ago

So happy to hear: image