It looks like 2.0.4 broke JAVA-296

Description

Usage of DCAwareRoundRobinPolicy with an empty constructor or passing of a null data center does not necessarily set the local data center to be the DC of the first seed node.
It looks like it chooses the DC of the first node in some Hash object after adding all discovered nodes.

Environment

None

Pull Requests

None

Activity

Show:
Olivier Michallat
October 12, 2014, 5:40 PM
Edited

Thanks for reporting this. This is the same issue as JAVA-496, which will be fixed in 2.0.7.

Sorry for not addressing your ticket first, I hadn't had time to investigate it, the other ticket got my attention because it outlined the source of the bug in the code.

Duplicate

Assignee

Unassigned

Reporter

Or Sher

Labels

None

PM Priority

None

Reproduced in

None

Affects versions

Fix versions

None

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Priority

Major
Configure