Netflix/Priam — pull request #18 by codyaray (2012-05-01 20:21:31+00:00)
Title: Consistently exclude the current rack from the list returned by getSeeds()

The current implementation sometimes includes a node on the current rack with the cassandra co-process, but other times doesn't. It depends on the order of the nodes in this region's list, as returned by the multimap, which in turn depends on the order of the nodes returned by the PriamInstanceFactory. If the first node in the region's list happens to be this node, then the region is excluded; otherwise, a node from this region is included.

This change is to make the behavior more consistent and decoupled from the unspecified return order of the factory. We specifically filter out the current rack before adding the seeds, which ensures that no node from the current rack is ever added to the seeds list.