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 picker #154

Closed ZuLiangWang closed 1 year ago

ZuLiangWang commented 1 year ago

Which issue does this PR close?

Closes #

Rationale for this change

The current shard picker uses the cluster instance to dynamically obtain the latest cluster topology. This is wrong. It should be scheduled based on the snapshot of the cluster. In this pull request, use snapshot to replace cluster.

What changes are included in this PR?

Are there any user-facing changes?

None.

How does this change test

Unit tests are currently not working properly and will be fixed in a subsequent pull request.