[Date Prev][Date Next] [Chronological] [Thread] [Top]

wrong order of entries in replog file (ITS#2512)

Full_Name: Hendrik Harms
Version: 2.1.17
OS: solaris 5.8
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

sometimes the slapd writes updates in the wrong order into the replog file.
I detected the problem by tying to delete many entries with there children.

ldapdelete -v -c -r \
   -w "secret" \
   -D "dc=mycompany, dc=de" \
   -H "ldap://hostname:port"; \
   -f FileWithDNs2delete

The FileWithDNs2delete contains nearly 6500 entries. Each entry has 
10 children (average). Most of the entries are deleted successfully. 
Some entries are deleted only on the master. In that case I found in 
the <slave:port>.rej File the error "Operation not allowed on non-leaf".

I tried it again with saving the replog file before starting the slurpd.
There I found the delete statement for the elements which caused the error
before the delete statement of one of its leafs. 

It looks like a racing condition somewhere in the slapd where the replog
is written.