Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
if (allUnhealthy) { // prefer deleting replicas with lower sequence IDs return replicas.stream() .sorted(Comparator.comparingLong(ContainerReplica::getSequenceId) .reversed()) .collect(Collectors.toList()); }
This should actually be the opposite, allowing lower sequence IDs to be deleted first. Also need to consider what happens when two replicas have the same sequence ID - how are ties broken? Consistent ordering matters in case of SCM failover.
Attachments
Issue Links
- links to