Skip to content

Conversation

@dkropachev
Copy link

@dkropachev dkropachev commented Jan 13, 2026

Set - doesn't guarantee order of elements.
When driver works with Nodes, say read replicas from TokenMap, Tablets, calculate replicas, API user should expect that order does matter and preserved.
For that we need to switch all these APIs and internal structures to use Lists

Fix: #786

@dkropachev dkropachev force-pushed the dk/switch-replica-stores-to-list branch 2 times, most recently from 9b65f50 to d668fe1 Compare January 13, 2026 03:49
@dkropachev dkropachev marked this pull request as ready for review January 13, 2026 11:11
@dkropachev dkropachev requested a review from nikagra January 13, 2026 11:11
@dkropachev dkropachev force-pushed the dk/switch-replica-stores-to-list branch 3 times, most recently from 7315d55 to cc0cc85 Compare January 13, 2026 20:56
Set - doesn't guarantee the order.
When driver works with Nodes, say read replicas from TokenMap, Tablets,
calculate replicas, API user should expect that order does matter and
preserved.
For that we need to switch all these APIs and internal structures to use
Lists
@dkropachev dkropachev force-pushed the dk/switch-replica-stores-to-list branch from cc0cc85 to 3378431 Compare January 13, 2026 21:17
@dkropachev dkropachev self-assigned this Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch internal API for Replicas to use List instead of Set

2 participants