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

(ITS#5260) delta-syncrepl infinite loop



Full_Name: Quanah Gibson-Mount
Version: 2.3.39
OS: Linux 2.6
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (76.21.80.71)


If the sync cookie is stale between a replica and the master, and the accesslog
DB is emtpy, delta sync starts slamming the master with search requests:

Dec  4 13:43:33 freelancer slapd[30805]: conn=3 op=19290 SEARCH RESULT tag=101
err=0 nentries=0 text= 
Dec  4 13:43:33 freelancer slapd[30805]: conn=3 op=19291 SRCH
base="cn=accesslog" scope=2 deref=0
filter="(&(objectClass=auditWriteObject)(reqResult=0))" 
Dec  4 13:43:33 freelancer slapd[30805]: conn=3 op=19291 SRCH attr=reqDN reqType
reqMod reqNewRDN reqDeleteOldRDN reqNewSuperior entryCSN 
Dec  4 13:43:33 freelancer slapd[30805]: conn=3 op=19291 SEARCH RESULT tag=101
err=4096 nentries=0 text=sync cookie is stale 
Dec  4 13:43:33 freelancer slapd[30805]: conn=3 op=19292 SRCH base="" scope=2
deref=0 filter="(objectClass=*)" 
Dec  4 13:43:33 freelancer slapd[30805]: conn=3 op=19292 SRCH attr=* + 
Dec  4 13:43:33 freelancer slapd[30805]: conn=3 op=19292 SEARCH RESULT tag=101
err=0 nentries=0 text= 
Dec  4 13:43:33 freelancer slapd[30805]: conn=3 op=19293 SRCH
base="cn=accesslog" scope=2 deref=0
filter="(&(objectClass=auditWriteObject)(reqResult=0))" 
Dec  4 13:43:33 freelancer slapd[30805]: conn=3 op=19293 SRCH attr=reqDN reqType
reqMod reqNewRDN reqDeleteOldRDN reqNewSuperior entryCSN 
Dec  4 13:43:33 freelancer slapd[30805]: conn=3 op=19293 SEARCH RESULT tag=101
err=4096 nentries=0 text=sync cookie is stale 
Dec  4 13:43:33 freelancer slapd[30805]: conn=3 op=19294 SRCH base="" scope=2
deref=0 filter="(objectClass=*)" 
Dec  4 13:43:33 freelancer slapd[30805]: conn=3 op=19294 SRCH attr=* + 

(as you can see, nearly 20,000 ops in just a few seconds)