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

gbellato
22.57.2007 addf5fa65fd2637c7c5b817dd72275edfde4add3
refs
author gbellato <gbellato@localhost>
Wednesday, August 22, 2007 08:57 +0200
committer gbellato <gbellato@localhost>
Wednesday, August 22, 2007 08:57 +0200
commitaddf5fa65fd2637c7c5b817dd72275edfde4add3
tree e8c566f5576558cbe888fe4014abf4e131efabf2 tree | zip | gz
parent 9b0d7442a051f4a17e8c9940b12600f8f4f4ad62 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
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/PersistentServerState.java 177 ●●●● diff | view | raw | blame | history