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

gbellato
02.22.2007 3fcf167e0af7a8f405442b3b4c8b07404ec6c0ff
refs
author gbellato <gbellato@localhost>
Friday, March 2, 2007 10:22 +0100
committer gbellato <gbellato@localhost>
Friday, March 2, 2007 10:22 +0100
commit3fcf167e0af7a8f405442b3b4c8b07404ec6c0ff
tree 6adfada55439cedaa1e59dd87ea8f1001f36e53f tree | zip | gz
parent 0c0bf26d8681aa3a4b0a95b2112aa50922a97d36 view | diff
issue 504,505,507 : res-synchronization after restore or import

The synchronization protocol already have some re-synchronization capabilities
that allows the synchronization server to detect where to start from the changelog
when a new LDAP server opens a session.

These changes implements the ability to do this when a restore or
an import is done when the LDAP server is online and already connected to a
synchronization server.

To achieve this the synchronization code, on notification from the core server
that a restore or an import is starting, close the session to the synchronization
server and restart it when the restore or import is finished.

The synchronization protocol then does its job of negociating where to start
from the changelog and resynchronizing the LDAP Server.

The core server does not yet provide the notification to the changelog server
but here if the synchronization part of the code along with some test for it.
1 files added
8 files modified
611 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/synchronization/common/ServerState.java 13 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/synchronization/plugin/ChangelogBroker.java 4 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/synchronization/plugin/MultimasterSynchronization.java 52 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/synchronization/plugin/PersistentServerState.java 2 ●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/synchronization/plugin/SynchronizationDomain.java 105 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/ReSyncTest.java 335 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/SchemaSynchronizationTest.java 4 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/SynchronizationTestCase.java 48 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/UpdateOperationTest.java 48 ●●●●● diff | view | raw | blame | history