mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
31.07.2013 27ec8a57c0986d33c84758d2885ced7d5f756bc4
refs
author Matthew Swift <matthew.swift@forgerock.com>
Friday, May 31, 2013 11:07 +0200
committer Matthew Swift <matthew.swift@forgerock.com>
Friday, May 31, 2013 11:07 +0200
commit27ec8a57c0986d33c84758d2885ced7d5f756bc4
tree 35a527eca1b7aa08658a87083e90442045b9ebea tree | zip | gz
parent 35a0fff224aa6503ddf8cc2e4a726a23dddee7ad view | diff
Additional fix for OPENDJ-875: Use of hostnames in replication protocol causes failover problems

* fix unit test regression introduced by previous commit. RS candidate filtering was too aggressive and assumed that there would only be one RS per JVM, which is not the case in the unit tests

* also use a thread safe set implementation for the local RS ports in order to avoid potential race conditions in unit tests (this may be the cause of occasional RS load balancing unit test failures).

2 files modified
25 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationServer.java 6 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/service/ReplicationBroker.java 19 ●●●● diff | view | raw | blame | history