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

fdorson
11.14.2008 2b90d968d139530054b8b0f29924f5bfc49f767d
refs
author fdorson <fdorson@localhost>
Tuesday, March 11, 2008 15:14 +0100
committer fdorson <fdorson@localhost>
Tuesday, March 11, 2008 15:14 +0100
commit2b90d968d139530054b8b0f29924f5bfc49f767d
tree 0c41a9d264b1e9122a290e9d48900b4419b17c07 tree | zip | gz
parent 1766a4a7a901795e0bd6a433fd9b6aa9487f6323 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
opends/src/messages/messages/replication.properties 2 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/PersistentServerState.java 109 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/ReplicationBroker.java 4 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java 2 ●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java 4 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/HistoricalCsnOrderingTest.java 2 ●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/PersistentServerStateTest.java 6 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/PersistentStateTest.java 4 ●●●● diff | view | raw | blame | history