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

Re: (ITS#4198) Empty Accesslog DB causes delta-syncrepl problem




--On Tuesday, November 22, 2005 12:02 PM -0800 Quanah Gibson-Mount 
<quanah@stanford.edu> wrote:

>
>
> --On Tuesday, November 22, 2005 7:58 PM +0000 openldap-its@OpenLDAP.org
> wrote:
>
>
> And just to follow up, the master was loaded by:
>
> slapcat -l replica-3
> slapadd -q -w -l replica-3
>
> and then started the master.
>
> Replica's 1 & 2 are simply doing a full re-sync from the master (not
> great, but oh well... They all had the same db).  Replica 3, which is
> where I got the DB that I loaded the master with, is the one with the
> stale cookie problem.  I'd think that means it shouldn't have any updates
> to process at all...

Okay, replica3 shows:

dapsearch -LLL -Q -h ldap-dev3 -b "dc=stanford,dc=edu" dc=stanford +
dn: dc=stanford,dc=edu
structuralObjectClass: organization
entryUUID: a504e0c4-9029-1029-9e4c-98dee611ff4f
creatorsName: cn=Manager,dc=stanford,dc=edu
modifiersName: cn=Manager,dc=stanford,dc=edu
createTimestamp: 20050724005725Z
modifyTimestamp: 20050724005725Z
entryCSN: 20050724005725Z#000001#00#000000
contextCSN: 20051007182152Z#000001#00#000000
entryDN: dc=stanford,dc=edu
subschemaSubentry: cn=Subschema
hasSubordinates: TRUE


and master0 shows:

ldapsearch -LLL -Q -h ldap-dev0 -b "dc=stanford,dc=edu" dc=stanford +
dn: dc=stanford,dc=edu
structuralObjectClass: organization
entryUUID: a504e0c4-9029-1029-9e4c-98dee611ff4f
creatorsName: cn=Manager,dc=stanford,dc=edu
modifiersName: cn=Manager,dc=stanford,dc=edu
createTimestamp: 20050724005725Z
modifyTimestamp: 20050724005725Z
entryCSN: 20050724005725Z#000001#00#000000
contextCSN: 20051007182152Z#000001#00#000000
entryDN: dc=stanford,dc=edu
subschemaSubentry: cn=Subschema
hasSubordinates: TRUE


so they have identical contextCSN's.


Part of the interesting output to me in the searches is that this seems to 
be what is causing the loop:

Nov 22 12:19:12 ldap-dev0.Stanford.EDU slapd[11394]: [ID 469902 
local4.debug] conn=7 op=163881 SRCH base="cn=accesslog" scope=1 deref=0 
filter="(&(objectClass=auditWriteObject)(reqResult=0))"
Nov 22 12:19:12 ldap-dev0.Stanford.EDU slapd[11394]: [ID 744844 
local4.debug] conn=7 op=163881 SRCH attr=reqDN reqType reqMod reqNewRDN 
reqDeleteOldRDN reqNewSuperior entryCSN
Nov 22 12:19:12 ldap-dev0.Stanford.EDU slapd[11394]: [ID 167594 
local4.debug] conn=7 op=163881 SEARCH RESULT tag=101 err=4096 nentries=0 
text=sync cookie is stale
Nov 22 12:19:12 ldap-dev0.Stanford.EDU slapd[11394]: [ID 469902 
local4.debug] conn=7 op=163882 SRCH base="dc=stanford,dc=edu" scope=2 
deref=0 filter="(objectClass=*)"
Nov 22 12:19:12 ldap-dev0.Stanford.EDU slapd[11394]: [ID 744844 
local4.debug] conn=7 op=163882 SRCH attr=* +
Nov 22 12:19:12 ldap-dev0.Stanford.EDU slapd[11394]: [ID 167594 
local4.debug] conn=7 op=163882 SEARCH RESULT tag=101 err=0 nentries=0 text=


For whatever reason, the search to "dc=stanford,dc=edu" is returning 0 
entries?

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html