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

gbellato
07.59.2009 3a32db2207756321c5dd661a64dde85e09b92dc0
refs
author gbellato <gbellato@localhost>
Friday, August 7, 2009 09:59 +0200
committer gbellato <gbellato@localhost>
Friday, August 7, 2009 09:59 +0200
commit3a32db2207756321c5dd661a64dde85e09b92dc0
tree fd78b322b70f3a139aa9d5ecf3ba668fa93d8184 tree | zip | gz
parent 80181400fb370483d03fa40ef3c735e721c32cc6 view | diff
Fix for  4165 : Replica can be slow to replay changes when using large window size

When checking dependencies during replay of operations on the consumer
the replication go through the list of pending changes while holding the
pending changes lock.
When using large values for the window size, the list can be large
and this can therefore cause large replication delay on the replica.

The solution is to limit the parsing to the list of changes that are older than the current change.
2 files modified
116 ■■■■■ changed files
opends/src/server/org/opends/server/replication/plugin/RemotePendingChanges.java 36 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/service/ReplicationDomainTest.java 80 ●●●●● diff | view | raw | blame | history