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

pgamba
12.41.2007 3c6f0907b969155053e9a1b5bd7f0e618e108ff7
refs
author pgamba <pgamba@localhost>
Thursday, July 12, 2007 17:41 +0200
committer pgamba <pgamba@localhost>
Thursday, July 12, 2007 17:41 +0200
commit3c6f0907b969155053e9a1b5bd7f0e618e108ff7
tree 4f891759a1f061b484e6bf7900941a7d06a0b420 tree | zip | gz
parent e322aece98d8c3f99bb71dfd538761e7ad6ae36c view | diff
Fix for 1895
Summary: Total update does not work with 3 servers that are also replication servers

Description: If the first replication server contacted is not connected to the target LDAP server, an error is raised even if the target LDAP server is connected to another replication server. The fix relies on a basic "routing table" (replication servers, and LDAP servers connected to each replication server). This table is also necessary for other fixes/features to come on the total update. This adds a new message in the replication protocol.

One unit tests exist with 2 Repl servers but does not fall in this issue. With this commit this test is made more complex with a 3rd Repl Server and one LDAP server or broker for each RS. The total update tests are still not enabled by default because they are still fragile on the tests execution order but they pass successfully when ran alone. Enabling these tests is an issue I will work on.

Some unit tests have been created to test the routing table elaboration and update.
1 files added
9 files modified
719 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/messages/ReplicationMessages.java 35 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ReplServerInfoMessage.java 142 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ReplicationMessage.java 6 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationCache.java 166 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationServer.java 2 ●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ServerHandler.java 82 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ServerReader.java 6 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java 247 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java 3 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/protocol/SynchronizationMsgTest.java 30 ●●●● diff | view | raw | blame | history