apache / incubator-horaedb-meta

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

feat: support alloc shard on same node #125

Closed ZuLiangWang closed 1 year ago

ZuLiangWang commented 1 year ago

Which issue does this PR close?

Closes #

Rationale for this change

Support the creation of sub tables on the same node.

What changes are included in this PR?

Are there any user-facing changes?

How does this change test

Pass unit test.

codecov-commenter commented 1 year ago

Codecov Report

Merging #125 (fd05118) into main (423ca15) will increase coverage by 0.05%. The diff coverage is 43.89%.

@@            Coverage Diff             @@
##             main     #125      +/-   ##
==========================================
+ Coverage   39.80%   39.85%   +0.05%     
==========================================
  Files          29       33       +4     
  Lines        3432     3799     +367     
==========================================
+ Hits         1366     1514     +148     
- Misses       1882     2072     +190     
- Partials      184      213      +29     
Impacted Files Coverage Δ
server/cluster/cluster.go 0.00% <0.00%> (ø)
server/cluster/manager.go 0.00% <0.00%> (ø)
server/cluster/table_manager.go 0.00% <0.00%> (ø)
server/cluster/types.go 0.00% <ø> (ø)
server/coordinator/procedure/create_table.go 0.00% <0.00%> (-53.39%) :arrow_down:
server/coordinator/procedure/factory.go 0.00% <0.00%> (ø)
server/coordinator/procedure/transfer_leader.go 49.52% <ø> (ø)
server/coordinator/procedure/util.go 38.88% <40.00%> (+0.17%) :arrow_up:
...er/coordinator/procedure/create_partition_table.go 43.26% <43.26%> (ø)
...erver/coordinator/procedure/create_normal_table.go 46.57% <46.57%> (ø)
... and 5 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.