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

gbellato
26.50.2007 3f35136ba1f7280fa233f2750d0e8929f7d504c5
refs
author gbellato <gbellato@localhost>
Tuesday, June 26, 2007 08:50 +0200
committer gbellato <gbellato@localhost>
Tuesday, June 26, 2007 08:50 +0200
commit3f35136ba1f7280fa233f2750d0e8929f7d504c5
tree 3083f53c8f286bf1344645cf96926dc7b2d27260 tree | zip | gz
parent 8dcf42de99929b811ad5b08e64fe85e11082505a 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.
5 files modified
1 files added
464 ■■■■■ changed files
opends/src/admin/defn/org/opends/server/admin/std/MultimasterDomainConfiguration.xml 40 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/messages/ReplicationMessages.java 23 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/ReplicationBroker.java 68 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java 140 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java 19 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/IsolationTest.java 174 ●●●●● diff | view | raw | blame | history