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

Matthew Swift
30.38.2013 3e4eefdcd60043206832b3bd5a00409810c6d9b6
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
commit3e4eefdcd60043206832b3bd5a00409810c6d9b6
tree 2bc501ad543a8a0349ee39dd2c7e1a6892a972a1 tree | zip | gz
parent 0ed992e1a1131ccb277ac50de37ce55b36571ebd 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
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationServer.java 49 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/service/ReplicationBroker.java 107 ●●●●● diff | view | raw | blame | history