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 forwarding http requests #116

Closed ZuLiangWang closed 1 year ago

ZuLiangWang commented 1 year ago

Which issue does this PR close?

Closes #

Rationale for this change

When CeresMeta is started in the cluster mode, the cluster contains the leader node and follower node, and only the leader node can process requests normally. However, the current http requests sent to the follower node are not forwarded like grpc requests, which will result in that the requests cannot be processed normally.

What changes are included in this PR?

Are there any user-facing changes?

None.

How does this change test

codecov-commenter commented 1 year ago

Codecov Report

Merging #116 (723353c) into main (423ca15) will decrease coverage by 0.69%. The diff coverage is 37.13%.

:exclamation: Current head 723353c differs from pull request most recent head cf44387. Consider uploading reports for the commit cf44387 to get more accurate results

@@            Coverage Diff             @@
##             main     #116      +/-   ##
==========================================
- Coverage   39.80%   39.10%   -0.70%     
==========================================
  Files          29       32       +3     
  Lines        3432     3869     +437     
==========================================
+ Hits         1366     1513     +147     
- Misses       1882     2144     +262     
- Partials      184      212      +28     
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/topology_manager.go 0.00% <0.00%> (ø)
server/cluster/types.go 0.00% <ø> (ø)
server/coordinator/procedure/factory.go 0.00% <0.00%> (ø)
server/coordinator/procedure/manager_impl.go 0.00% <0.00%> (ø)
server/coordinator/procedure/scatter.go 65.00% <20.00%> (-1.92%) :arrow_down:
server/coordinator/procedure/util.go 38.88% <40.00%> (+0.17%) :arrow_up:
...er/coordinator/procedure/create_partition_table.go 45.22% <45.22%> (ø)
... and 11 more

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