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

jvergara
06.52.2009 bbdcd1d918a2f27fccb2e6a3fe4d854b901dffd8
refs
author jvergara <jvergara@localhost>
Monday, July 6, 2009 15:52 +0200
committer jvergara <jvergara@localhost>
Monday, July 6, 2009 15:52 +0200
commitbbdcd1d918a2f27fccb2e6a3fe4d854b901dffd8
tree 91b65a7e2902ea8a1e131e495f8a7bd9f845eefb tree | zip | gz
parent 06799c3035e21a1cb7b684a8b6b28d296e1e4824 view | diff
Fix for issue 4092 (dsreplication should allow to configure servers with no replication server and servers with only a replication server)

The new arguments for the enable subcommand are:
--noReplicationServer1
Specifies not to have a replication port and changelog on the first server.
The first server will only contain replicated data but no changelog with
the modifications made to the replicated data. At least two servers with a
changelog are required in the replication topology to avoid a single point
of failure
--onlyReplicationServer1
Specifies to only have a changelog (with a replication port) on the first
server. The first server will not contain replicated data but only a
changelog with the modifications made in the data contained in other
servers
--noReplicationServer2
Specifies not to have a replication port and changelog on the second
server. The second server will only contain replicated data but no
changelog with the modifications made to the replicated data. At least two
servers with a changelog are required in the replication topology to avoid
a single point of failure
--onlyReplicationServer2
Specifies to only have a changelog (with a replication port) on the second
server. The second server will not contain replicated data but only a
changelog with the modifications made in the data contained in other
servers


The two new arguments for the disable subcommand are:

--disableReplicationServerArg
Disable the replication server. The replication port and changelog will be
disabled on the specified server
--disableAll
Disable all the replication configuration in the specified server. The
contents of the server will no longer be replicated and the replication
server (changelog and replication port) will be disabled if it is
configured

There is a new configuration argument:
--advanced
Use this option to have access to advanced settings when running this
command-line in interactive mode


Note that the --disableAll is not required but it can be considered a handy option to remove all replication information in a given server (including the contents in cn=admin data). It can be useful when the user wants to start over a replication configuration as it guarantees a clean starting point.

The current behavior (when no new arguments are specified) has been kept intact. This means that the user will not have to choose to configure the replication server or the domains unless the advanced option is specified.

The exception to this happens in the case where the user decides to disable all the suffixes (but the new --disableAll option is not specified). In this case the replication server will not be automatically disabled. However if the command is run in non-interactive mode, the user will be informed of this and if run in interactive mode, the user will be proposed to disable it.

The status subcommand has also been modified to display the cases where there are replication servers that are no domains and vice-versa.
7 files modified
2306 ■■■■■ changed files
opends/src/messages/messages/admin_tool.properties 133 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/ToolConstants.java 10 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsconfig/DSConfig.java 10 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsreplication/DisableReplicationUserData.java 46 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsreplication/EnableReplicationUserData.java 96 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliArgumentParser.java 129 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliMain.java 1882 ●●●● diff | view | raw | blame | history