[Date Prev][Date Next]
(ITS#3459) Selective replication producing extra blank lines that break replication
Full_Name: Bryan Wann
OS: Linux Fedora Core 2 - 2.6.8-1.521
Submission from: (NULL) (22.214.171.124)
I use a 2.1 server to replicate out to 2.0 servers. In slapd.conf under
'replica' I have "attr!=entryCSN,entryUUID,modifiersName,modifyTimestamp"
configured to withhold attributes from my 2.0 servers. The problem I'm seeing
only appears when there's more than one replica configured and only when doing
"add: objectClass" operations.
After the "add: objectClass" data is written, there is a series of modifies to
update entryCSN, modifiersName, modifyTimestamp. When these attributes are
withheld from replicas, there is still something writing a '\n' to the
replication log in place of the withheld replicated data for each instance of
For example, if you have four replicas with "attr!" configured, there are four
'\n' being written out to the replication log:
[four blank lines here]
Slurpd will correctly read in this replication log, send the "add: objectClass"
to it's slaves. However, anything after the extra blank lines slurpd will not
process. For all operations afterward, slurpd debugging shows it's aware
there's new data in slapd's master log and will append this to slurpd.replog.
After that, the only way to get slurpd to continue replicating is to remove the
extra blank lines from the replog.
I /think/ the culprit is in servers/slapd/repl.c in replog1() or print_vals().
I have looked through ITS and I haven't found anything that seems to
specifically acknowledge this problem. ITS #2889 sounds like it may be vaguely
related, but I'm not sure.