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

Re: OpenLDAP and Berkeley DB

adam jacob wrote:

In ITS #1176, Keith Bostic from Sleepycat points out some possible data
corruption issues with regard to the ldbm backend and the Berkeley DB. I (and
others I've been speaking with) are experiencing similar symptoms of
(seemingly random) data corruption occuring in our directories. Most often,
it will occur within a heavily used index database, such as an equality
index on the "mail" attribute.

It happens on servers under heavy load, which seems consistent with the
discussion Kurt had with Keith in the ITS report.

My question is, the ITS report has the fix to this problem commited in HEAD
and REL_ENG_2... has it been rolled in to openldap-2.0.11? If so, the problem
is still in existence.. if it has not, I'll roll a CVS copy of OpenLDAP, and
test out the fix on some of my problem machines.



It's in REL_ENG_2; but looks like there's more to it, we're still seeing index corruption running that
Btw, we never had indizes pointing at other people's entries. It's only that sometimes, an entry gets
deleted from an index file (while still being there as a record and still being present in other indizes).
Also, I'm not sure 'load' is the key. I'm not sure about the DB internals, but usually there's no concurrent
WRITE access; I can't imagine read access does any form of writing so how could it corrupt the index?