apache / incubator-horaedb-meta

Meta service of HoraeDB cluster.
https://horaedb.apache.org
Apache License 2.0
27 stars 15 forks source link

refactor!: refactor shard version logic #264

Closed ZuLiangWang closed 1 year ago

ZuLiangWang commented 1 year ago

Rationale

Refer to this issue: https://github.com/CeresDB/ceresmeta/issues/263

Detailed Changes

Test Plan

Pass existing unit tests and integration tests.

codecov[bot] commented 1 year ago

Codecov Report

Merging #264 (19c997b) into main (7f1354e) will increase coverage by 19.23%. Report is 66 commits behind head on main. The diff coverage is 55.95%.

:exclamation: Current head 19c997b differs from pull request most recent head 0837539. Consider uploading reports for the commit 0837539 to get more accurate results

@@             Coverage Diff             @@
##             main     #264       +/-   ##
===========================================
+ Coverage   39.66%   58.89%   +19.23%     
===========================================
  Files          34       42        +8     
  Lines        4213     5807     +1594     
===========================================
+ Hits         1671     3420     +1749     
+ Misses       2317     1972      -345     
- Partials      225      415      +190     
Files Coverage Δ
pkg/coderr/code.go 0.00% <ø> (ø)
pkg/coderr/error.go 39.02% <100.00%> (+1.52%) :arrow_up:
server/coordinator/lock/entry_lock.go 100.00% <100.00%> (ø)
server/coordinator/procedure/delay_queue.go 91.30% <100.00%> (+0.25%) :arrow_up:
server/coordinator/procedure/util.go 0.00% <ø> (ø)
server/etcdutil/config.go 100.00% <ø> (ø)
server/etcdutil/util.go 45.45% <ø> (ø)
server/id/reusable_id_impl.go 100.00% <100.00%> (ø)
server/member/lease.go 78.62% <100.00%> (+1.46%) :arrow_up:
server/storage/key_path.go 100.00% <ø> (ø)
... and 32 more