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

gbellato
22.22.2009 2d7788a781b8a7ce58b7ec9f8a7a1ae9418ee28b
refs
author gbellato <gbellato@localhost>
Wednesday, April 22, 2009 08:22 +0200
committer gbellato <gbellato@localhost>
Wednesday, April 22, 2009 08:22 +0200
commit2d7788a781b8a7ce58b7ec9f8a7a1ae9418ee28b
tree bf31d85b2577c705f8b37f43fe1f068642c17730 tree | zip | gz
parent b7ab8a03dde69765027e36fcf9664469924c5389 view | diff
The replication publish information about the whole topology in cn=monitor
When cn=monitor is searched, the replication therefore asks informations
about the replication state to all Replication Servers. This should always be
fast unless a server is hanged. In such case the replication waits for
5 seconds then issue an error message and goes on with the
information it has received at this time.

In some cases however it looks like that some server do not send back the
responses fast enough thus provoking errors in the logs.
I was not able to produce this problem but discovered some inefficiency in the
replication monitoring code that can lead to query several time the other servers
and therefore maybe producing the problem.

This change therefore improve the monitoring code so that we only wait once if
a server is very slow to answer.
5 files modified
342 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/replication/server/MonitorData.java 31 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationServer.java 115 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java 162 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ServerHandler.java 32 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/service/ReplicationDomainTest.java 2 ●●● diff | view | raw | blame | history