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

Fabio Pistolesi
11.39.2016 3c140af6c756b30b325ce3c6ed080e8898e2b7ec
refs
author Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Thursday, February 11, 2016 11:39 +0100
committer Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Wednesday, February 24, 2016 14:52 +0100
commit3c140af6c756b30b325ce3c6ed080e8898e2b7ec
tree a907a90f01aabccdbf4403734c8fc4f28ad42e2f tree | zip | gz
parent ea4a4a2027617cd619c459636adb94b39a93fb9f view | diff
OPENDJ-2190 Replicas cannot always keep up with sustained high write throughput

The main issue came from slowly going through changes and verifying dependencies.
Rewrote all checks to verify only what is currently being processed by the replay threads and recent changes marked as dependent.
Switch from synchronized methods to fine grained locks and concurrent lists.
Simplified server state management and pending changes.
6 files modified
685 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/LDAPReplicationDomain.java 43 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/MultimasterReplication.java 6 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/PendingChange.java 37 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/RemotePendingChanges.java 545 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/ReplayThread.java 47 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/NamingConflictTest.java 7 ●●●● diff | view | raw | blame | history