Issue 3217 - cached connections failover with back-ldap
Summary: cached connections failover with back-ldap
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-04 20:41 UTC by ando@openldap.org
Modified: 2020-03-26 16:56 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 ando@openldap.org 2004-07-04 20:41:21 UTC
Full_Name: Pierangelo Masarati
Version: HEAD(/2.2,2.1?)
OS: Linux (irrelevant)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (81.72.89.40)
Submitted by: ando


When using cached connections, if the remote server is restarted for any
reason,
the old connection is never refreshed, so subsequent use of the cached
connection results in "52 Server is unavailable" and no attempt is made to retry
and establish a new cached connection.  I guess the solution is to invalidate
the connection in those cases, but I don't see at the moment a resonable
diagnosis that works for different operations.

Comment 1 ando@openldap.org 2004-07-04 21:39:02 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Bugs
Comment 2 ando@openldap.org 2004-07-08 21:17:20 UTC
The applied patch causes the first request after a remote server restart
to fail with "52 Server is unavailable"; subsequent operations are fine. 
The fix could maybe be improved by directly retrying (at least once, if
possible) when this particular error is detected.

p.

-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it


    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497

Comment 3 ando@openldap.org 2004-07-09 16:32:24 UTC
changed notes
Comment 4 ando@openldap.org 2004-07-17 14:14:29 UTC
changed state Test to Release
Comment 5 ando@openldap.org 2004-07-17 14:14:50 UTC
changed notes
Comment 6 Kurt Zeilenga 2004-07-28 15:50:36 UTC
changed notes
Comment 7 ando@openldap.org 2004-07-29 12:30:10 UTC
changed notes
changed state Release to Closed
Comment 8 Howard Chu 2004-10-01 09:53:03 UTC
changed notes
changed state Closed to Test
Comment 9 Howard Chu 2004-10-01 09:53:13 UTC
changed notes
Comment 10 Howard Chu 2004-10-01 10:04:44 UTC
The following commits should help further with this issue, it does a 
single retry for each operation (except Bind, which always uses a fresh 
connection).

-------- Original Message --------
From: 	hyc@OpenLDAP.org
To: 	OpenLDAP Commit <openldap-commit2devel@OpenLDAP.org>
Subject: 	commit: ldap/servers/slapd/back-ldap add.c back-ldap.h bind.c 
compare.c delete.c extended.c modify.c modrdn.c search.c



Update of /repo/OpenLDAP/pkg/ldap/servers/slapd/back-ldap

Modified Files:
	add.c  1.51 -> 1.52
	back-ldap.h  1.58 -> 1.59
	bind.c  1.81 -> 1.82
	compare.c  1.50 -> 1.51
	delete.c  1.35 -> 1.36
	extended.c  1.20 -> 1.21
	modify.c  1.56 -> 1.57
	modrdn.c  1.36 -> 1.37
	search.c  1.144 -> 1.145

Log Message:
Add a retry for failed connections


CVS Web URLs:
  http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/
    http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/add.c
    http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/back-ldap.h
    http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/bind.c
    http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/compare.c
    http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/delete.c
    http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/extended.c
    http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/modify.c
    http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/modrdn.c
    http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/search.c

Changes are generally available on cvs.openldap.org (and CVSweb)
within 30 minutes of being committed.




-- 
  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

Comment 11 Howard Chu 2004-12-25 12:26:57 UTC
changed notes
changed state Test to Release
Comment 12 Kurt Zeilenga 2004-12-31 05:10:48 UTC
changed notes
changed state Release to Closed
Comment 13 Howard Chu 2009-02-17 05:06:18 UTC
moved from Software Bugs to Archive.Software Bugs
Comment 14 OpenLDAP project 2014-08-01 21:06:32 UTC
fixed in HEAD,re22