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

fdorson
11.14.2008 4f74122ecf8ea55de86d6b61890b663314ac3575
refs
author fdorson <fdorson@localhost>
Tuesday, March 11, 2008 15:14 +0100
committer fdorson <fdorson@localhost>
Tuesday, March 11, 2008 15:14 +0100
commit4f74122ecf8ea55de86d6b61890b663314ac3575
tree 280cb0f5ddbbab6884eec7a2ee549d99706d77e6 tree | zip | gz
parent 2e46965a521c0d294e1ab2d16fcf0fc9a60020d2 view | diff
Fix for 1873 : ServerState should be updated after a server crash

The ServerState is saved to the database periodically,
therefore in case of crash it is possible that is does not contain
the latest changes that have been processed and saved to the
database.
In order to make sure that the replication never looses changes,
when replication starts the server needs to search all the entries
that have been updated after the last write of the ServerState.
This is done by using the HistoricalCsnOrderingMatchingRule.
8 files modified
133 ■■■■ changed files
opendj-sdk/opends/src/messages/messages/replication.properties 2 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/PersistentServerState.java 109 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationBroker.java 4 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java 2 ●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java 4 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/HistoricalCsnOrderingTest.java 2 ●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/PersistentServerStateTest.java 6 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/PersistentStateTest.java 4 ●●●● diff | view | raw | blame | history