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

gbellato
23.58.2008 fa1f845a9f9562b1727ecdbd06608c485a3b09b5
refs
author gbellato <gbellato@localhost>
Tuesday, September 23, 2008 14:58 +0200
committer gbellato <gbellato@localhost>
Tuesday, September 23, 2008 14:58 +0200
commitfa1f845a9f9562b1727ecdbd06608c485a3b09b5
tree 95b5877ddbccc42c1323b99660669f93c44f787f tree | zip | gz
parent bb5ca50f747cab0186eae6a14bd8d34be37d56a6 view | diff
Fix for 3488 : Replication initialization or quicksetup sometime fails

The problem was that after a full update the ReplicationDomain restarts
the broker before reloading the serverState and generationID.

Therefore if the session establishment phase was faster than the initialize thread
the generationID that was sent to the ReplicationServer was the old one.

The solution is to move the reload of the serverState and generationID
before the broker.restart() in ReplicationDomain.initialize()

9 files modified
118 ■■■■■ changed files
opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java 3 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java 91 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/DependencyTest.java 1 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/GenerationIdTest.java 1 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java 1 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java 2 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ComputeBestServerTest.java 6 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ReplicationServerFailoverTest.java 7 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/MonitorTest.java 6 ●●●●● diff | view | raw | blame | history