Issue 8589 - cn=config replication plus DB replication can break replication
Summary: cn=config replication plus DB replication can break replication
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.44
Hardware: All All
: --- normal
Target Milestone: 2.5.3
Assignee: Howard Chu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-15 00:09 UTC by Quanah Gibson-Mount
Modified: 2021-06-18 12:11 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 Quanah Gibson-Mount 2017-02-15 00:09:18 UTC
Full_Name: Quanah Gibson-Mount
Version: 2.4.44
OS: N/A
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (47.208.148.26)


Test059 can expose an interesting bug in OpenLDAP when replication is configured
for both cn=config and an underlying data DB.  I wouldn't call it a critical
issue for this scenario, but it's possible it could be critical in other
scenarios I'm not aware of.

The basic problem breaks down like this:

a) A modification to the schema is made in cn=config
b) An entry is added or modified to the data DB that makes use of the new schema
changes

The majority of the time, this is not an issue, as the change to the schema gets
replicated /before/ the change to the entry is honored.

However, if the modification to the entry is done *before* the schema changes
get replicated, the following happens:

a) The replica pauses cn=config replication
b) The replica attempts to replicate the changed entry
c) The replica fails to replicate the change due to the fact the schema is not
yet updated
d) The replica goes into an endless REFRESH loop

Because cn=config replication is never "unpaused", the REFRESH operation can
never succeed.  It essentially takes manual intervention to fix the replica.
Comment 1 Quanah Gibson-Mount 2017-03-17 16:43:29 UTC
moved from Incoming to Software Bugs
Comment 2 Howard Chu 2021-03-21 17:42:45 UTC
fixed in master
Comment 3 Quanah Gibson-Mount 2021-03-21 19:41:30 UTC
Commits: 
  • f2740c79 
by Howard Chu at 2021-03-21T17:41:19+00:00 
ITS#8589 syncrepl: defer on REFRESH_REQUIRED