RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1244926 - Crash while triming the retro changelog
Summary: Crash while triming the retro changelog
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Noriko Hosoi
QA Contact: Viktor Ashirov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-20 18:58 UTC by Noriko Hosoi
Modified: 2020-09-13 21:26 UTC (History)
4 users (show)

Fixed In Version: 389-ds-base-1.3.4.0-8.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 11:43:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 1537 0 None None None 2020-09-13 21:26:35 UTC
Red Hat Product Errata RHBA-2015:2351 0 normal SHIPPED_LIVE 389-ds-base bug fix and enhancement update 2015-11-19 10:28:44 UTC

Description Noriko Hosoi 2015-07-20 18:58:17 UTC
When trimming the retroCL, it deletes an entry. Then retrieve the entry from the cache (no creation of tombstone) to remove it from the cache.
Apparently if the entry cachen is small, it can fail to retrieve it and not testing this special condition

Comment 1 mreynolds 2015-07-20 20:50:05 UTC
Fixed upstream

Comment 2 mreynolds 2015-07-21 13:48:18 UTC
Verification steps:

[1] Enable retro changelog plugin and set the retro changelog max age:

ldapmodify ....
dn: cn=retro changelog plugin,cn=plugins,cn=config
changetype: modify
replace: nsslapd-pluginEnabled
nsslapd-pluginEnabled: on
-
replace: nsslapd-changelogmaxage
nsslapd-changelogmaxage: 30

[2] Restart the server
[3] Set a very small entry cache size for the retro changelog backend

ldapmodify
dn: cn=changelog,cn=ldbm database,cn=plugins,cn=config
changetype: modify
replace: nsslapd-cachememsize
nsslapd-cachememsize: 512000

[4] Restart the server
[5] Add 2000 entries
[6] Wait 31 seconds
[7] Make sure server is still running(or did not crash during the adds)

Comment 4 Simon Pichugin 2015-07-27 13:57:53 UTC
Built tested: 389-ds-base-1.3.4.0-8.el7.x86_64

[1] Enable retro changelog plugin and set the retro changelog max age:

ldapmodify -D "cn=Directory Manager" -w Secret123 -h localhost -p 389 -x -v
dn: cn=retro changelog plugin,cn=plugins,cn=config
changetype: modify
replace: nsslapd-pluginEnabled
nsslapd-pluginEnabled: on
-
replace: nsslapd-changelogmaxage
nsslapd-changelogmaxage: 30

[2] Restart the server
sudo restart-dirsrv

[3] Set a very small entry cache size for the retro changelog backend

ldapmodify -D "cn=Directory Manager" -w Secret123 -h localhost -p 389 -x -v
dn: cn=changelog,cn=ldbm database,cn=plugins,cn=config
changetype: modify
replace: nsslapd-cachememsize
nsslapd-cachememsize: 512000

[4] Restart the server
sudo restart-dirsrv

[5] Add 2000 entries
ldclt -h localhost -p 389 -D "cn=Directory Manager" -w Secret123 -f cn=MrXXXXX -b "dc=rhts,dc=eng,dc=bos,dc=redhat,dc=com" -e add,person,incr,noloop,commoncounter -r1 -R2000

[6] Wait 31 seconds

[7] Make sure server is still running(or did not crash during the adds)
ldapsearch  -D "cn=Directory Manager" -w Secret123 -h localhost -p 389 -x -v -b "dc=rhts,dc=eng,dc=bos,dc=redhat,dc=com" cn=Mr02000
ldap_initialize( ldap://localhost:389 )
filter: cn=Mr02000
requesting: All userApplication attributes
# extended LDIF
#
# LDAPv3
# base <dc=rhts,dc=eng,dc=bos,dc=redhat,dc=com> with scope subtree
# filter: cn=Mr02000
# requesting: ALL
#

# Mr02000, rhts.eng.bos.redhat.com
dn: cn=Mr02000,dc=rhts,dc=eng,dc=bos,dc=redhat,dc=com
objectClass: person
objectClass: top
cn: Mr02000
sn: toto sn

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

Marking as verified.

Comment 5 errata-xmlrpc 2015-11-19 11:43:11 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, 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://rhn.redhat.com/errata/RHBA-2015-2351.html


Note You need to log in before you can comment on or make changes to this bug.