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

gbellato
19.46.2008 2184755edaf0785918ed03aabc991b7e3a9f6751
refs
author gbellato <gbellato@localhost>
Tuesday, February 19, 2008 17:46 +0100
committer gbellato <gbellato@localhost>
Tuesday, February 19, 2008 17:46 +0100
commit2184755edaf0785918ed03aabc991b7e3a9f6751
tree 9f1011f605bf1aa31db8027941515ea0e9c37fed tree | zip | gz
parent c774da7ff96766fef933e7cad709a840a244b5cc 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
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java 6 ●●●● diff | view | raw | blame | history