Encapsulate difficulties with sorted sets of members #23308
Labels
1 - triaged
Tickets that are safe to pick up for contributing in terms of likeliness of being accepted
t:cluster:dc
t:cluster
Milestone
In several places we maintain a set of cluster
Member
with different ordering. SinceMember.leaderStatusOrdering
Member.ageOrdering
are not stable (e.g. member status may change) ordinary-
can't be used when removing (or replacing).We should encapsulate those difficulties in a data structure. It should support adding, replacing and removing a member. Preferably with O(1) operations (e.g. Map lookup via
UniqueAddress
).See #23297
The text was updated successfully, but these errors were encountered: