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

gbellato
14.39.2009 15fb59f9fe10a2fc54867be9fc61446e93bc5896
refs
author gbellato <gbellato@localhost>
Monday, September 14, 2009 10:39 +0200
committer gbellato <gbellato@localhost>
Monday, September 14, 2009 10:39 +0200
commit15fb59f9fe10a2fc54867be9fc61446e93bc5896
tree b42423ab052fc6eda47adca253f18fbe62cd8695 tree | zip | gz
parent 73e6bc328e2db469d26f34312093eef10a048e38 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
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationServer.java 23 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/service/ReplicationDomainTest.java 5 ●●●● diff | view | raw | blame | history