youzan / ZanRedisDB

Yet another distributed fault-tolerant key-value database Compatible with Redis written in Golang.
MIT License
388 stars 60 forks source link

optimize the log syncer marshal and avoid blocking raft while applying snapshot #46

Closed absolute8511 closed 4 years ago

codecov[bot] commented 4 years ago

Codecov Report

Merging #46 into master will decrease coverage by 0.04%. The diff coverage is 29.59%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #46      +/-   ##
==========================================
- Coverage   44.71%   44.66%   -0.05%     
==========================================
  Files         154      154              
  Lines       23997    24132     +135     
==========================================
+ Hits        10730    10779      +49     
- Misses      11548    11631      +83     
- Partials     1719     1722       +3
Impacted Files Coverage Δ
node/state_machine.go 25.94% <ø> (+0.21%) :arrow_up:
node/syncer_learner.go 0% <0%> (ø) :arrow_up:
node/log_sender.go 0% <0%> (ø) :arrow_up:
raft/rawnode.go 62.58% <100%> (ø) :arrow_up:
transport/rafthttp/transport.go 48.93% <100%> (+0.27%) :arrow_up:
node/node.go 31.42% <15.78%> (-0.45%) :arrow_down:
transport/rafthttp/snapshot_sender.go 62.28% <26.53%> (-27.72%) :arrow_down:
transport/rafthttp/http.go 68.96% <31.37%> (-9.16%) :arrow_down:
node/raft.go 36.74% <63.63%> (+0.92%) :arrow_up:
raft/node.go 71.01% <71.42%> (-0.67%) :arrow_down:
... and 5 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 2632ebf...01bf877. Read the comment docs.