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

(ITS#7761) Issue with modifying loglevel during long search operation

Full_Name: Mark Warren
Version: 2.4.38
OS: RHEL 5 x86-64
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

There is an issue where OpenLDAP will stop sending search results and fail to
update a dynamic config when the loglevel is modified during a long search

* No further search results sent to client although internally the operation
* Log level change does not take effect

Cause(Via Howard):
* send_search_entry() correctly returns an error because back-config wants a
* back-bdb/back-hdb ignores this error
* The entry it tried to send doesn't get sent, and it just loops back to fetch
the next entry instead of quitting

Steps to reproduce:
1. Create large sample database. 2 million entries was more than sufficient
2. Issue a search request for all entries.
3. Submit a modify request on olcLogLevel within cn=config while the above
search is still in progress.

Notes(Also via Howard):
* This is not a total hang as everything should resume after the internal search
operation finishes. 

Mark Warren