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

gbellato
14.39.2009 3b3c4bed59f36586b164325d2451b02ec7991452
refs
author gbellato <gbellato@localhost>
Monday, September 14, 2009 10:39 +0200
committer gbellato <gbellato@localhost>
Monday, September 14, 2009 10:39 +0200
commit3b3c4bed59f36586b164325d2451b02ec7991452
tree 7c5c71d56b7d225a140071fe9045082db4ff4991 tree | zip | gz
parent 4d4992fc3b355aa875b819216751cb4b0e62ce4e view | diff
Fix for 4223 : dsreplication enable --noSchemaReplication fails: routing table is empty

When dsreplication enable runs it create the replication servers configuration
then the replication domain configuration
then attempt to perform an initialization

if this attempt is made too quickly following the creation of the configuration it
can happen that the replication servers are not connected when the initialization
is started and the routing tables of the replications servers not accurate.

This fix synchronize the creation of the replication server domain with the
replication server thread in charge of connecting the replication servers
together so that this problem can't occur anymore.
2 files modified
28 ■■■■■ changed files
opends/src/server/org/opends/server/replication/server/ReplicationServer.java 23 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/service/ReplicationDomainTest.java 5 ●●●● diff | view | raw | blame | history