Revert "use zero as default score in DynamicEndpointSnitch" from 3.0 and 3.11

This reverts commit 15bd10afbf.

More details CASSANDRA-14555
This commit is contained in:
Jay Zhuang 2018-07-05 09:38:17 -07:00
parent a4b8d1e9bc
commit 8ead7af140
3 changed files with 2 additions and 3 deletions

View File

@ -19,7 +19,6 @@
* Handle all exceptions when opening sstables (CASSANDRA-14202)
* Handle incompletely written hint descriptors during startup (CASSANDRA-14080)
* Handle repeat open bound from SRP in read repair (CASSANDRA-14330)
* Use zero as default score in DynamicEndpointSnitch (CASSANDRA-14252)
* Respect max hint window when hinting for LWT (CASSANDRA-14215)
* Adding missing WriteType enum values to v3, v4, and v5 spec (CASSANDRA-13697)
* Don't regenerate bloomfilter and summaries on startup (CASSANDRA-11163)

View File

@ -186,7 +186,7 @@ public class DynamicEndpointSnitch extends AbstractEndpointSnitch implements ILa
{
Double score = scores.get(inet);
if (score == null)
score = 0.0;
continue;
subsnitchOrderedScores.add(score);
}

View File

@ -92,7 +92,7 @@ public class DynamicEndpointSnitchTest
assertEquals(order, dsnitch.getSortedListByProximity(self, Arrays.asList(host1, host2, host3, host4)));
setScores(dsnitch, 20, hosts, 10, 10, 10);
order = Arrays.asList(host4, host1, host2, host3);
order = Arrays.asList(host1, host2, host3, host4);
assertEquals(order, dsnitch.getSortedListByProximity(self, Arrays.asList(host1, host2, host3, host4)));
}
}