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

gbellato
03.47.2006 840c825261ce76e69fbffe437861b40984d30d35
refs
author gbellato <gbellato@localhost>
Tuesday, October 3, 2006 15:47 +0200
committer gbellato <gbellato@localhost>
Tuesday, October 3, 2006 15:47 +0200
commit840c825261ce76e69fbffe437861b40984d30d35
tree fd6022bd5eafc260deaffa251616d26f04e8f1a4 tree | zip | gz
parent 23f2dcda4aa7e579464f069cde98d032c9328626 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
opendj-sdk/opends/src/server/org/opends/server/changelog/Changelog.java 35 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/changelog/ChangelogCache.java 2 ●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/changelog/ProtocolSession.java 7 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/changelog/SerializingProtocolSession.java 8 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/changelog/ServerHandler.java 14 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/changelog/SocketSession.java 8 ●●●●● diff | view | raw | blame | history