While working on RackAwarePolicy, it was noticed that DCAwareRoundRobinPolicy considers hosts without local datanceter information to be considered local. In RackAwarePolicy, only if localDc is UNSET then a host without local dc information can be considered local. One of these approaches is wrong, most probably DCAwareRoundRobinPolicy::distance should be modified.
While working on
RackAwarePolicy
, it was noticed thatDCAwareRoundRobinPolicy
considers hosts without local datanceter information to be considered local. InRackAwarePolicy
, only iflocalDc
isUNSET
then a host without local dc information can be considered local. One of these approaches is wrong, most probablyDCAwareRoundRobinPolicy::distance
should be modified.