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

pgamba
12.41.2007 1c8b422d63f419d8c85a28b1f2276ac0f3e3632c
refs
author pgamba <pgamba@localhost>
Thursday, July 12, 2007 17:41 +0200
committer pgamba <pgamba@localhost>
Thursday, July 12, 2007 17:41 +0200
commit1c8b422d63f419d8c85a28b1f2276ac0f3e3632c
tree 381f0db5dc0078d38d77dd301d7ce17674a7ac66 tree | zip | gz
parent 1f8d64c975505a062a6c453fd2ff4f9861905e70 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
opends/src/server/org/opends/server/messages/ReplicationMessages.java 35 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/ReplServerInfoMessage.java 142 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/ReplicationMessage.java 6 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationCache.java 166 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServer.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ServerHandler.java 82 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ServerReader.java 6 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java 247 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java 3 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/protocol/SynchronizationMsgTest.java 30 ●●●● diff | view | raw | blame | history