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

gbellato
23.58.2008 9a3dcf4b902b7f38c070a97cf5dc217cfccc9651
refs
author gbellato <gbellato@localhost>
Tuesday, September 23, 2008 14:58 +0200
committer gbellato <gbellato@localhost>
Tuesday, September 23, 2008 14:58 +0200
commit9a3dcf4b902b7f38c070a97cf5dc217cfccc9651
tree 64876f18dd0378784e637c0084be7f982cd18a97 tree | zip | gz
parent 2cff58676a22376060f15a50e83dfc278850bfd3 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
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java 3 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java 91 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/DependencyTest.java 1 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/GenerationIdTest.java 1 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java 1 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java 2 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ComputeBestServerTest.java 6 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ReplicationServerFailoverTest.java 7 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/MonitorTest.java 6 ●●●●● diff | view | raw | blame | history