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

gbellato
11.42.2008 0f9ee85fd0b36220ef6a3ee8d2b9f5f6f02b26bd
refs
author gbellato <gbellato@localhost>
Monday, February 11, 2008 14:42 +0100
committer gbellato <gbellato@localhost>
Monday, February 11, 2008 14:42 +0100
commit0f9ee85fd0b36220ef6a3ee8d2b9f5f6f02b26bd
tree 3d85e02630f75e91a0fc98bb05288cf094fad7f4 tree | zip | gz
parent 6a23fed27c3c721948cd8b76d661068d00686fbb 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
opends/src/server/org/opends/server/replication/plugin/ReplayThread.java 5 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/ReplicationBroker.java 36 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java 170 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ProtocolWindowTest.java 1 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerTest.java 8 ●●●●● diff | view | raw | blame | history