Skip to content
This repository

AbstractLatencyScoreStrategyImpl does not work as expected #239

Closed
guanig opened this Issue · 1 comment

2 participants

Andriy
Andriy

I'm trying to set up Cassandra ring with SmaLatencyScoreStrategyImpl and find out that AbstractLatencyScoreStrategyImpl does not work as expected.
in particular, method List sortAndfilterPartition(List> srcPools,
AtomicBoolean prioritized)
does:
Collections.sort(pools, scoreComparator); //for Step 1
..........
Collections.sort(pools, busyComparator); // for Step 2
..........
Step 3 then, expects pools to be sorted by Score, but they are sorted by busy after Step 2.

Could be fixed by change order for steps 2 and 3 or by adding another Collections.sort before Step 3.

Collaborator

This has been fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.