Full_Name: Peter Mogensen
OS: Debian Lenny
Submission from: (NULL) (188.8.131.52)
Using openldap 2.4.17 and 2.4.19 linked with libdb4.6 and libdb4.8 in a
* Load the database with slapadd on server-1, start server-1
The LDIF being loaded is generated with slapcat from a slapd 2.3.30-5+etch2
Running on Debian Etch. I have no reason to suspect that it is not loaded
correctly into server1
* Start server-2 and monitor the progress of replication with slapcat, for
# for ((I=1;I<=20;I++)); do slapcat > out-$I; done
* Look at the output:
# for ((I=1;I<=20;I++)); do wc -l out-$I; done
I would expect the generated files to be strictly increasing in size.
However, some times there's a file which is smaller than the previous.
In it I see LDIF entries like this:
... with an empty DN line.
You appear to be using back-hdb. I note that in bdb_tool_entry_get()
there is code specific to back-hdb that tries to lookup the parent of
the current entry and, if found, "fixes" its DN.
My guess is that if this can fail, e.g. because entries are being
sync'ed out of order, the DN does not get fixed. If this is the case (I
couldn't inspect code deep enough to make sure), I'd expect that the DN
get fixed anyway, though, because missing entries should exist as "glue"
I apologize for the rather incomplete analysis, I can't dig further
right now. I hope this provides some hint to others, unless completely