java-driver icon indicating copy to clipboard operation
java-driver copied to clipboard

Review `DCAwareRoundRobinPolicy` host distance calculation

Open Gor027 opened this issue 2 years ago • 1 comments

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.

Gor027 avatar Jun 30 '23 14:06 Gor027

Need to check if it's still the case.

roydahan avatar Jun 13 '24 13:06 roydahan