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

gbellato
11.42.2008 2ec1e20dacc4606317fc9e38890117df638a1fff
refs
author gbellato <gbellato@localhost>
Monday, February 11, 2008 14:42 +0100
committer gbellato <gbellato@localhost>
Monday, February 11, 2008 14:42 +0100
commit2ec1e20dacc4606317fc9e38890117df638a1fff
tree 3f3dff314eca5bdaf3c3ccb2be675e88b9b30867 tree | zip | gz
parent c967c53137ce7863303a488c86b3f429014939cb view | diff

With the changes done in revision 3695
(issue 1288 : replication should not create 10 threads for each replication domain)
the window mechanism from the Replication Server to the LDAP server is not working
anymore because the window ACK is sent as soon as the LDAP server has read the message from
the socket while it should be sent after replaying the operation.

This can cause out of memory problems and bad monitoring.

The fix is to move the response using WindowMessage from the ListenerThread
to the ReplayThread at the end of the message processing.
5 files modified
220 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplayThread.java 5 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationBroker.java 36 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java 170 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ProtocolWindowTest.java 1 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerTest.java 8 ●●●●● diff | view | raw | blame | history