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

gbellato
03.47.2006 cdee5ecd5b7ac3e3da5d3ffc9c39f4ba09159c13
refs
author gbellato <gbellato@localhost>
Tuesday, October 3, 2006 15:47 +0200
committer gbellato <gbellato@localhost>
Tuesday, October 3, 2006 15:47 +0200
commitcdee5ecd5b7ac3e3da5d3ffc9c39f4ba09159c13
tree 11e3ec69c57542513bfe65d1d095920b72dc6c01 tree | zip | gz
parent 567b227b63c4a65f9e4c457763109cd646cc2476 view | diff
At startup time, each changelog server establish a connection with each other
changelog server.

At regular time each changelog server checks if it knows some changelog
servers with whom it is not connected and if necessary tries to open a connection
to this server.

This check is based on the hostname of the server.
When a changelog server uses DHCP this hostname is not always the same on
all the servers and this can result in tentative to open duplicate connections
which then result in spurious errors message.

In the long term, the changelog servers will use a discovery process and
this will be a good opportunity to discover the server ID of each other changelog
server and this will be a much better way to check for missing connections.

In the short term I've modified the code to use the IP address instead of the
hostname as an identifier for the remote changelog servers.

This should work fine with DHCP.
6 files modified
74 ■■■■ changed files
opends/src/server/org/opends/server/changelog/Changelog.java 35 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/changelog/ChangelogCache.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/changelog/ProtocolSession.java 7 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/changelog/SerializingProtocolSession.java 8 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/changelog/ServerHandler.java 14 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/changelog/SocketSession.java 8 ●●●●● diff | view | raw | blame | history