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?
Modify the ShardPicker interface and add the Snapshot parameter.
Modify the implementation to adapt to the current interface.
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.
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?
ShardPicker
interface and add theSnapshot
parameter.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.