Issue 7416 - entryCSN index errors when changing olcDbEnvFlags with back-mdb
Summary: entryCSN index errors when changing olcDbEnvFlags with back-mdb
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.33
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-11 21:48 UTC by Quanah Gibson-Mount
Modified: 2014-08-01 21:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Quanah Gibson-Mount 2012-10-11 21:48:09 UTC
Full_Name: Quanah Gibson-Mount
Version: 2.4.33
OS: Linux 2.6
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (74.196.25.250)


I found that if I modify the olcDbEnvFlags on a back-mdb database to have:

olcDbEnvFlags: writemap
olcDbEnvFlags: nometasync


Then modifications in the primary database will throw the following error until
slapd is restarted:


Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 fd=11 ACCEPT from
PATH=/opt/zimbra/openldap-2.4.33.2z/var/run/ldapi
(PATH=/opt/zimbra/openldap-2.4.33.2z/var/run/ldapi)
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 op=0 BIND dn="cn=config"
method=128
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 op=0 BIND dn="cn=config"
mech=SIMPLE ssf=0
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 op=0 RESULT tag=97 err=0
text=
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 op=1 SRCH
base="cn=accesslog" scope=0 deref=2 filter="(objectClass=*)"
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 op=1 SRCH attr=1.1
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 op=1 SEARCH RESULT tag=101
err=32 nentries=0 text=
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 op=2 SRCH
base="olcDatabase={2}mdb,cn=config" scope=0 deref=2 filter="(objectClass=*)"
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 op=2 SRCH
attr=olcDbEnvFlags
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 op=2 SEARCH RESULT tag=101
err=0 nentries=1 text=
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 op=3 MOD
dn="olcDatabase={2}mdb,cn=config"
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 op=3 MOD attr=olcDbEnvFlags
Oct 11 14:38:01 zre-ldap002 slapd[22940]: slap_queue_csn: queing 0x7f88c17fc3f0
20121011213801.832254Z#000000#000#000000
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 op=3 RESULT tag=103 err=0
text=
Oct 11 14:38:01 zre-ldap002 slapd[22940]: slap_graduate_commit_csn: removing
0x41d4690 20121011213801.832254Z#000000#000#000000
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 op=4 MOD
dn="uid=zmpostfix,cn=appaccts,cn=zimbra"
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 op=4 MOD attr=zimbraId
Oct 11 14:38:01 zre-ldap002 slapd[22940]: slap_queue_csn: queing 0x7f88c17fd1a0
20121011213801.864697Z#000000#000#000000
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 op=4: attribute "entryCSN"
index delete failure
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 op=4 RESULT tag=103 err=80
text=
Oct 11 14:38:01 zre-ldap002 slapd[22940]: slap_graduate_commit_csn: removing
0x41d4690 20121011213801.864697Z#000000#000#000000
Oct 11 14:38:01 zre-ldap002 slapd[22940]: conn=1001 fd=11 closed (connection
lost)



Oct 11 14:38:06 zre-ldap002 slapd[22940]: conn=1004 fd=14 closed (connection
lost)
Oct 11 14:38:09 zre-ldap002 slapd[22940]: conn=1005 fd=11 ACCEPT from
IP=10.137.242.52:47811 (IP=10.137.242.52:389)
Oct 11 14:38:09 zre-ldap002 slapd[22940]: conn=1005 op=0 EXT
oid=1.3.6.1.4.1.1466.20037
Oct 11 14:38:09 zre-ldap002 slapd[22940]: conn=1005 op=0 STARTTLS
Oct 11 14:38:09 zre-ldap002 slapd[22940]: conn=1005 op=0 RESULT oid= err=0
text=
Oct 11 14:38:09 zre-ldap002 slapd[22940]: conn=1005 fd=11 TLS established
tls_ssf=256 ssf=256
Oct 11 14:38:09 zre-ldap002 slapd[22940]: conn=1005 op=1 BIND
dn="uid=zimbra,cn=admins,cn=zimbra" method=128
Oct 11 14:38:09 zre-ldap002 slapd[22940]: conn=1005 op=1 BIND
dn="uid=zimbra,cn=admins,cn=zimbra" mech=SIMPLE ssf=0
Oct 11 14:38:09 zre-ldap002 slapd[22940]: conn=1005 op=1 RESULT tag=97 err=0
text=
Oct 11 14:38:09 zre-ldap002 slapd[22940]: conn=1005 op=2 SRCH
base="cn=zre-ldap002.eng.vmware.com,cn=servers,cn=zimbra" scope=0 deref=0
filter="(objectClass=*)"
Oct 11 14:38:09 zre-ldap002 slapd[22940]: conn=1005 op=2 SEARCH RESULT tag=101
err=0 nentries=1 text=
Oct 11 14:38:09 zre-ldap002 slapd[22940]: conn=1005 op=3 SRCH
base="cn=config,cn=zimbra" scope=0 deref=0 filter="(objectClass=*)"
Oct 11 14:38:09 zre-ldap002 slapd[22940]: conn=1005 op=3 SEARCH RESULT tag=101
err=0 nentries=1 text=
Oct 11 14:38:10 zre-ldap002 slapd[22940]: conn=1005 op=4 MOD
dn="cn=zre-ldap002.eng.vmware.com,cn=servers,cn=zimbra"
Oct 11 14:38:10 zre-ldap002 slapd[22940]: conn=1005 op=4 MOD
attr=zimbraMtaSmtpdMilters
Oct 11 14:38:10 zre-ldap002 slapd[22940]: slap_queue_csn: queing 0x7f88c17fd1a0
20121011213810.017749Z#000000#000#000000
Oct 11 14:38:10 zre-ldap002 slapd[22940]: conn=1005 op=4: attribute "entryCSN"
index delete failure
Oct 11 14:38:10 zre-ldap002 slapd[22940]: conn=1005 op=4 RESULT tag=103 err=80
text=
Oct 11 14:38:10 zre-ldap002 slapd[22940]: slap_graduate_commit_csn: removing
0x41d5110 20121011213810.017749Z#000000#000#000000
Oct 11 14:38:10 zre-ldap002 slapd[22940]: conn=1005 fd=11 closed (connection
lost)
Comment 1 Howard Chu 2012-10-11 23:47:14 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Bugs
Comment 2 Quanah Gibson-Mount 2012-10-12 18:52:43 UTC
changed notes
changed state Test to Release
Comment 3 Quanah Gibson-Mount 2013-03-05 02:18:51 UTC
changed notes
changed state Release to Closed
Comment 4 OpenLDAP project 2014-08-01 21:04:44 UTC
fixed in master
fixed in RE24