I'm trying to set up Cassandra ring with SmaLatencyScoreStrategyImpl and find out that AbstractLatencyScoreStrategyImpl does not work as expected.
in particular, method List<HostConnectionPool sortAndfilterPartition(List<HostConnectionPool> srcPools,
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.
This has been fixed