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

frequent updates corrupt integrity of indices (deterministic) (ITS#1164)

Full_Name: Zdenek Pavlas
Version: 2.0.7
OS: Linux 2.2.9 i686, libc6 2.1.3-18, libdb.so.3
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

We run ~50k rec database and there are few hundred 
updates daily. After each few months some searches 
start to give wrong results- some entries are 
duplicated 2-4 times, some are missing, etc..

Slightly modified query that avoids the corrupted 
index produces correct results. Rebuilding the 
whole database with slapadd always fixed the 
problem for some time. I think it's a slapd bug not
ldbm/OS issue because:

- The search results are not random but consistent.
  (until new updates corrupt data even more)

- There are 2 replicas giving exactly the same 
  (wrong) responses.

It seems that some sequence of updates always 
corrupts some indices. I'm unable to reproduce it 
but I may provide the corrupted objectClass.dbb 
file. (~200k)