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

Matthew Swift
30.38.2013 d0ec790931dcb0ad6ff6059cf7196ec3dc5b7921
refs
author Matthew Swift <matthew.swift@forgerock.com>
Thursday, May 30, 2013 18:38 +0200
committer Matthew Swift <matthew.swift@forgerock.com>
Thursday, May 30, 2013 18:38 +0200
commitd0ec790931dcb0ad6ff6059cf7196ec3dc5b7921
tree 9abd12b0e6873c63a5fc9d73ba5018de19882abf tree | zip | gz
parent 18d271a358e25ff92166875e5e5e8f759f10eb18 view | diff
Partial fix for OPENDJ-875: Use of hostnames in replication protocol causes failover problems

This partial fix addresses the first two bugs described in the issue comments, specifically:

* the logic (ReplicationBroker#filterServersInSameVM) which chooses the best RS does not prefer RS which are on the same host, only those which are in the same VM. In addition, the logic in ReplicationServer#isLocalReplicationServerPort assumes that the local host name is the same address which the RS is listening on

* the method ReplicationBroker#isSameReplicationServerUrl contains a typo which causes the second url to be interpreted as the local host name if the first url is a local address. This triggers all kinds of strange side effects during RS fail-over.
2 files modified
156 ■■■■ changed files
opends/src/server/org/opends/server/replication/server/ReplicationServer.java 49 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/service/ReplicationBroker.java 107 ●●●●● diff | view | raw | blame | history