Description of problem: Duplicating bz 484157 for RHDS8.1: 484157 - rhds71 (from rhcs71) timelimit not honored in some cases Steps to reproduce the problem: 0. import a large ldif file (>= 500K entries) 1. Run ldapsearch with an range search as well as the time limit. The attribute in the range search filter should be indexed. ldapsearch -h <host> -p <port> -D "cn=directory manager" -w <pw> -b "<base_dn>" -l <timelimit> "(&(attr>=value_1)(attr<=value_2))" If the ldapsearch command finishes much longer than <timelimit> (e.g., <timelimit> + 10 seconds) and the return code is 3 (time limit exceeded), the bug is reproduced. Expected result: the command finishes in (<timelimit> + 2) seconds.
Created attachment 331783 [details] cvs commit message Checked in into CVS HEAD.
by the way, I have 300k entries in DB before i fetch this ldapsearch [root@mv32a-vm slapd-mv32a-vm]# /usr/lib/mozldap/ldapsearch -D "CN=DIRECTORY MANAGER" -w redhat123 -s sub -b "dc=example,dc=com" -l 1 "uid=*DB*663*" dn version: 1 dn: uid=DBroca6635, ou=Product Testing, dc=example,dc=com dn: uid=VLoadbuil9663, ou=Product Development, dc=example,dc=com ldap_search: Timelimit exceeded bug verified, closed
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2009-0455.html