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

Re: Duplicated replication with two databases (ITS#3228)

Doing it manually. I started slapd but didn't start slurpd.

After adding the description attribute, the replog file contains:

replica: build-cl9.distro.conectiva
time: 1089387331
dn: uid=replicator,dc=my-domain,dc=com
changetype: modify
add: description
description: this is a description
replace: entryCSN
entryCSN: 2004070915:35:31Z#0x0001#0#0000
replace: modifiersName
modifiersName: cn=Manager,dc=my-domain,dc=com
replace: modifyTimestamp
modifyTimestamp: 20040709153531Z

Seems right.
Now I run slurpd on it:

# slurpd -d 256 -f /etc/openldap/slapd.conf -r master-replog -o -t /var/lib/slurpd/
@(#) $OpenLDAP: slurpd 2.1.30 (Jun 19 2004 04:53:21) $

Processing in one-shot mode:
1 total replication records in file,
1 replication records to process.
request 1 done
request 1 done
request 2 done
request 2 done
Error: ldap_modify_s failed modifying "modify/add: description: value #0 already exists": uid=replicator,dc=my-domain,dc=com
Error: ldap operation failed, data written to "/var/lib/slurpd//replica/build-cl9.distro.conectiva:0.rej"
slurpd: terminated.

Two requests? Well, it duplicated the change somehow. Worked the first time, but obviously failed the second time.