Issue 7321 - Subtree replication: when removing object outside of subtree, contextCSN is not updating!
Summary: Subtree replication: when removing object outside of subtree, contextCSN is n...
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.31
Hardware: All All
: --- normal
Target Milestone: 2.5.0
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-05 15:41 UTC by kostjnspb@yandex.ru
Modified: 2021-01-05 10:38 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kostjnspb@yandex.ru 2012-07-05 15:41:48 UTC
Full_Name: Konstantin Menshikov
Version: 2.4.31
OS: FreeBSD
URL: ftp://ftp.openldap.org/incoming/kmenshikov-120705.ext
Submission from: (NULL) (212.116.101.94)


I have  replication setup, when i replicate not entire tree, but only part of
it.
Configuration provider and consumer attached.
I use openldap-server-2.4.31 and db47-4.7.25.4

While adding object outside of the replicated subtree:
e.g. ou=TestBranch1,dc=example,dc=com
contextCSN of dn dc=example,dc=com on consumer  server updated, ok.
But while removing object, contextCSN not updated!
Is it expected behavior or not?

At first I added object *ou=hosts,ou=TestBranch2,dc=example,dc=com*.1
After I removed object.

Provider log:
Jun 22 06:37:53 ro1 slapd[62268]: conn=1002 op=52 SRCH
base="ou=hosts,ou=TestBranch2,dc=example,dc=com" scope=0 deref=0
filter="(objectClass=*)"
Jun 22 06:37:53 ro1 slapd[62268]: conn=1002 op=52 SRCH attr=hasSubordinates
objectClass
Jun 22 06:37:53 ro1 slapd[62268]: conn=1002 op=52 SEARCH RESULT tag=101 err=32
nentries=0 text=
Jun 22 06:37:54 ro1 slapd[62268]: conn=1002 op=53 ADD
dn="ou=hosts,ou=TestBranch2,dc=example,dc=com"
Jun 22 06:37:54 ro1 slapd[62268]: slap_queue_csn: queing 0x7ffffe3fb100
20120622063754.599740Z#000000#000#000000
Jun 22 06:37:54 ro1 slapd[62268]: conn=1002 op=53 RESULT tag=105 err=0 text=
Jun 22 06:37:54 ro1 slapd[62268]: slap_graduate_commit_csn: removing 0x80191bfd0
20120622063754.599740Z#000000#000#000000
Jun 22 06:37:54 ro1 slapd[62268]: conn=1002 op=54 SRCH
base="ou=hosts,ou=TestBranch2,dc=example,dc=com" scope=0 deref=0
filter="(objectClass=*)"
Jun 22 06:37:54 ro1 slapd[62268]: conn=1002 op=54 SRCH attr=hasSubordinates
objectClass
Jun 22 06:37:54 ro1 slapd[62268]: conn=1002 op=54 SEARCH RESULT tag=101 err=0
nentries=1 text=
Jun 22 06:38:01 ro1 slapd[62268]: conn=1002 op=55 DEL
dn="ou=hosts,ou=TestBranch2,dc=example,dc=com"
Jun 22 06:38:01 ro1 slapd[62268]: slap_queue_csn: queing 0x7ffffebfc590
20120622063801.799710Z#000000#000#000000
Jun 22 06:38:01 ro1 slapd[62268]: conn=1002 op=55 RESULT tag=107 err=0 text=
Jun 22 06:38:01 ro1 slapd[62268]: slap_graduate_commit_csn: removing 0x802738970
20120622063801.799710Z#000000#000#000000
Jun 22 06:38:02 ro1 slapd[62268]: conn=1002 op=56 SRCH
base="ou=TestBranch2,dc=example,dc=com" scope=1 deref=3
filter="(objectClass=*)"
Jun 22 06:38:02 ro1 slapd[62268]: conn=1002 op=56 SRCH attr=hasSubordinates
objectClass
Jun 22 06:38:02 ro1 slapd[62268]: conn=1002 op=56 SEARCH RESULT tag=101 err=0
nentries=2 text=


Consumer log:
Jun 22 06:37:54 ro2 slapd[62298]: do_syncrep2: rid=111 LDAP_RES_INTERMEDIATE -
NEW_COOKIE
Jun 22 06:37:54 ro2 slapd[62298]: do_syncrep2: rid=111 NEW_COOKIE:
rid=111,csn=20120622063754.599740Z#000000#000#000000
Jun 22 06:37:54 ro2 slapd[62298]: slap_queue_csn: queing 0x8019eca90
20120622063754.599740Z#000000#000#000000
Jun 22 06:37:54 ro2 slapd[62298]: slap_graduate_commit_csn: removing 0x8019ec2b0
20120622063754.599740Z#000000#000#000000 
Comment 1 Quanah Gibson-Mount 2020-09-08 15:33:41 UTC
Should be fixed (possibly in 2.4 as well at this point).  Please test.