Bug 1972721

Summary: Large updates can reset the CLcache to the beginning of the changelog [rhel-8.4.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: 389-ds-baseAssignee: thierry bordaz <tbordaz>
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: aadhikar, bsmejkal, cobrown, ds-qe-bugs, gkimetto, kbanerje, ldap-maint, mreynolds, mrhodes, msauton, sgouvern, tmihinto, wwinter
Target Milestone: betaKeywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-1.4-8040020210616143519.96015a92 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1972590 Environment:
Last Closed: 2021-06-29 16:07:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1972590    
Bug Blocks:    

Comment 1 thierry bordaz 2021-06-17 08:02:36 UTC
Fix available 389-ds-1.4-8040020210616143519.96015a92 => MODIFIED

Comment 5 Akshay Adhikari 2021-06-17 16:38:33 UTC
Build Tested: 389-ds-base-1.4.3.16-16.module+el8.4.0+11446+fc96bc48.x86_64

# grep clcache_adjust_anchorcsn /var/log/dirsrv/slapd-master1/errors |  grep 'cscb 0 - state 0' | tail -5
[17/Jun/2021:10:58:08.322905246 -0400] - DEBUG - agmt="cn=002" (example:39002) - clcache_adjust_anchorcsn - agmt="cn=002" (example:39002) - (cscb 0 - state 0) - csnPrevMax (60cb62fa003100010000) csnMax (60cb62fa003100010000) csnBuf (60cb62fa000400010000) csnConsumerMax (60cb62fa000400010000)
[17/Jun/2021:10:58:08.365019735 -0400] - DEBUG - agmt="cn=002" (example:39002) - clcache_adjust_anchorcsn - agmt="cn=002" (example:39002) - (cscb 0 - state 0) - csnPrevMax (60cb62fa003100010000) csnMax (60cb62fa003100010000) csnBuf (60cb62fa002100010000) csnConsumerMax (60cb62fa002100010000)
[17/Jun/2021:11:22:37.630590385 -0400] - DEBUG - agmt="cn=002" (example:39002) - clcache_adjust_anchorcsn - agmt="cn=002" (example:39002) - (cscb 0 - state 0) - csnPrevMax (60cb6559000000010000) csnMax (60cb6559000000010000) csnBuf (60cb651e000000010000) csnConsumerMax (60cb651e000000010000)
[17/Jun/2021:11:22:42.301284783 -0400] - DEBUG - agmt="cn=002" (example:39002) - clcache_adjust_anchorcsn - agmt="cn=002" (example:39002) - (cscb 0 - state 0) - csnPrevMax (60cb6559000000010000) csnMax (60cb6559000000010000) csnBuf (60cb653b000000010000) csnConsumerMax (60cb653b000000010000)
[17/Jun/2021:11:22:47.324694940 -0400] - DEBUG - agmt="cn=002" (example:39002) - clcache_adjust_anchorcsn - agmt="cn=002" (example:39002) - (cscb 0 - state 0) - csnPrevMax (60cb6559000000010000) csnMax (60cb6559000000010000) csnBuf (60cb6551000000010000) csnConsumerMax (60cb6551000000010000)

==> csnBuf and csnConsumerMax are in sync.

Checking jump in the past:
# grep -n '^csn' /var/lib/dirsrv/slapd-master1/changelogdb/e4b61f8d-cf7b11eb-99b8c921-8b6aa74a.ldif | wc -l
12657

# grep -n '^csn' /var/lib/dirsrv/slapd-master1/changelogdb/e4b61f8d-cf7b11eb-99b8c921-8b6aa74a.ldif | grep 60cb6551000000010000
7578116:csn: 60cb6551000000010000

Marking as VERIFIED.

Comment 9 errata-xmlrpc 2021-06-29 16:07:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: 389-ds:1.4 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:2595