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

gbellato
22.22.2009 36191b70a96c298ad07cf9a9384cc42764ea957e
refs
author gbellato <gbellato@localhost>
Wednesday, April 22, 2009 08:22 +0200
committer gbellato <gbellato@localhost>
Wednesday, April 22, 2009 08:22 +0200
commit36191b70a96c298ad07cf9a9384cc42764ea957e
tree a8a656e3e18e993a26301f054e7f0fb74faa03e1 tree | zip | gz
parent 11f231e32df0589a53aebb499540c1d4a1d9a0fd 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
opends/src/server/org/opends/server/replication/server/MonitorData.java 31 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServer.java 115 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java 162 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ServerHandler.java 32 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/service/ReplicationDomainTest.java 2 ●●● diff | view | raw | blame | history