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

gbellato
07.59.2009 b27c0518805fc8c1152b6214f5099f200df86c4a
refs
author gbellato <gbellato@localhost>
Friday, August 7, 2009 09:59 +0200
committer gbellato <gbellato@localhost>
Friday, August 7, 2009 09:59 +0200
commitb27c0518805fc8c1152b6214f5099f200df86c4a
tree ebcdbf9f18e14e58569efea1544ffefd5087c048 tree | zip | gz
parent 463a9ba7094ef88cdb7dd1214cddfeb980cb04de 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
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/RemotePendingChanges.java 36 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/service/ReplicationDomainTest.java 80 ●●●●● diff | view | raw | blame | history