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

gbellato
22.57.2007 3211d8caa762e2242a6c2669e1b91bd97025f33b
refs
author gbellato <gbellato@localhost>
Wednesday, August 22, 2007 08:57 +0200
committer gbellato <gbellato@localhost>
Wednesday, August 22, 2007 08:57 +0200
commit3211d8caa762e2242a6c2669e1b91bd97025f33b
tree 6a6dc6244c3d0d7af7acf1170bafa494cb847037 tree | zip | gz
parent e0c7565dc724ad4800b3ca20780754f2ac561a83 view | diff
Fix for 1602 : removing root entries of domain cause replay of many changes

Before this fix, If one remove the root entry of a replication domain,
then stop the server The PersistentServerState is lost.
Therefore when later restarting the server all the changes from
the replication server are replayed on the database.

To avoid this the fix is simply to store the PersistentServerState to the configuration entry when the root entry does not exist.

I have not developed a unit test for this scenario because I believe that it is not possible to restart the server during the unit test.
I have done manual tests to check that the PersistentServerState
is correctly saved and reread.
1 files modified
177 ■■■■ changed files
opends/src/server/org/opends/server/replication/plugin/PersistentServerState.java 177 ●●●● diff | view | raw | blame | history