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

Nicolas Capponi
22.58.2016 e84de8ea992525eb6ac672ddc764e3a4825e36d9
refs
author Nicolas Capponi <nicolas.capponi@forgerock.com>
Friday, April 22, 2016 14:58 +0200
committer Nicolas Capponi <nicolas.capponi@forgerock.com>
Monday, April 25, 2016 11:38 +0200
commite84de8ea992525eb6ac672ddc764e3a4825e36d9
tree 3c2ea4a66635283a7cf96dcba9f1c1e8064efdce tree | zip | gz
parent f30855c701fa6012a541acfff1f4b5c225dc5da1 view | diff
OPENDJ-2794 Move check of key ordering from Log to LogFile class when adding a changelog record

The assumption that appending a log record in Log class is done by only one
thread is false, as two remote replication servers can send an update to the
same RS with the same target changelog.
Check that was done in Log class was not thread-safe, due to optimizations.
4 files modified
109 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/replication/server/changelog/file/Log.java 38 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/server/changelog/file/LogFile.java 63 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/messages/org/opends/messages/replication.properties 2 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/server/changelog/file/LogFileTest.java 6 ●●●● diff | view | raw | blame | history