Issue 5426 - syncrepl and syncprov clash on contextCSN updates
Summary: syncrepl and syncprov clash on contextCSN updates
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: 2008-03-14 16:16 UTC by Howard Chu
Modified: 2014-08-01 21:04 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 Howard Chu 2008-03-14 16:16:10 UTC
Full_Name: Howard Chu
Version: 2.4/HEAD
OS: 
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (76.91.220.157)
Submitted by: hyc


If syncprov-checkpoint is configured on a database with a syncrepl consumer
(either for cascaded syncrepl or for mirrormode), the syncrepl consumer may fail
to update the contextCSN because syncprov updates it first. In 2.4 the syncrepl
consumer tries to delete its old value and add the new value, instead of just
doing a modify/Replace as it used to in 2.3. The 2.4 consumer was changed in
this respect because multiple consumers are now allowed on a database, thus
using multiple values in the contextCSN attribute. Replacing the entire
attribute when only a single value needed to change seemed like the wrong thing
to do.

The syncprov overlay still just uses a modify/Replace, so it doesn't have this
problem. Since both syncrepl and syncprov now currently track all of the
contextCSNs in use, probably syncrepl should just be switched back to using
modify/Replace, with the full list of known contextCSNs.

Comment 1 Howard Chu 2008-03-14 17:02:20 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Bugs
Comment 2 Howard Chu 2008-03-21 01:45:08 UTC
changed notes
changed state Test to Release
Comment 3 Quanah Gibson-Mount 2008-05-13 03:21:38 UTC
changed state Release to Closed
Comment 4 OpenLDAP project 2014-08-01 21:04:14 UTC
fixed in HEAD/RE24