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

gbellato
19.46.2008 58a4b916a28cd70ab22d6f9483b88f52bbaae6b8
refs
author gbellato <gbellato@localhost>
Tuesday, February 19, 2008 17:46 +0100
committer gbellato <gbellato@localhost>
Tuesday, February 19, 2008 17:46 +0100
commit58a4b916a28cd70ab22d6f9483b88f52bbaae6b8
tree 0d838737b5160b38cead690322640d3415f2d32e tree | zip | gz
parent 7a90e594d8c38f63983e27a012dd352ca44d55f9 view | diff
Fix for 2968 : dependent ADD operation can incorrectly generate conflicting entries

With the following sequence of operation :
Add first entry with DN X
delete first entry with DN X
Add another entry with DN X

The second ADD is sometimes not computed as dependent and a false
DN conflict is sometime created.

This happens when the delete operation complete after we tried to process the second
add but before we check for dependencies in the operation queue.

To avoid this problem all operations must be attempted twice before going into
the conflict resolution mechanism, unfortunately in this case, we were not checking if
this is the first try he operation is attempted and therefore were going directory into
conflict resolution.
1 files modified
6 ■■■■ changed files
opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java 6 ●●●● diff | view | raw | blame | history