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

gbellato
26.50.2007 5e2100d94e16a699079a984ba8270d3f9e8c6932
refs
author gbellato <gbellato@localhost>
Tuesday, June 26, 2007 08:50 +0200
committer gbellato <gbellato@localhost>
Tuesday, June 26, 2007 08:50 +0200
commit5e2100d94e16a699079a984ba8270d3f9e8c6932
tree 41e34b3fb3bb8dfab1e3d26aad4b90edf79128e6 tree | zip | gz
parent 257a309236f2263599ff6571558a3d579af25cd7 view | diff
This change introduce a new configuration attribute that allow to configure
the behavior of the server when replication has been configured but the
replication have not been able to connect to any of the configured replication server.

This configuration attribute is named stays in the replication domain
configuration entry and is named : ds-cfg-isolation-policy

The possible behavior values are :
- reject-all-updates : When this value is used and the server cannot connect to
any of the replication server, all the updates are rejected with an
UNWILLING TO PERFORM error code.
This is the default value
- accept-all-updates : When this value is used and the server cannot connect to
any of the replication server, all the updates are accepted without sending them to
a replication server, when a replication server will become available, the server will
use the historical information to generate replication messages.
This last mode will make the changes at risk because they will only be saved in
the historical information of the local server. It may also introduce high replication
delay when the connection establish again.
Note that currently the replication code is not yet able to generate messages for the
MODDN, DELETE and ADD operations. (issue 1752)

This change also improve the error messages that are logged when the server cannot connect
any replication : before the server was continuously logging messages twice per seconds, now
the server only logs the error the first time and log a new message indicating that everything is
fine when a replication server is back.
1 files added
5 files modified
464 ■■■■■ changed files
opendj-sdk/opends/src/admin/defn/org/opends/server/admin/std/MultimasterDomainConfiguration.xml 40 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/messages/ReplicationMessages.java 23 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationBroker.java 68 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java 140 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java 19 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/IsolationTest.java 174 ●●●●● diff | view | raw | blame | history