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 1824930 - ipa ns-slapd 3 threads deadlock, db pages, state_change lock, write vattr lock
Summary: ipa ns-slapd 3 threads deadlock, db pages, state_change lock, write vattr lock
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.6
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: thierry bordaz
QA Contact: RHDS QE
Marc Muehlfeld
URL:
Whiteboard:
: 1830435 (view as bug list)
Depends On:
Blocks: 1839173
TreeView+ depends on / blocked
 
Reported: 2020-04-16 16:59 UTC by Marc Sauton
Modified: 2023-10-06 19:41 UTC (History)
7 users (show)

Fixed In Version: 389-ds-base-1.3.10.2-3.el7
Doc Type: Bug Fix
Doc Text:
.Directory Server no longer hangs while updating the schema Previously, during a mixed load of search and modify operations, the update of the Directory Server schema blocked all search and modify operations, and the server appeared to hang. This update adjusts the mutex locking during schema updates. As a result, the server does not hang while updating the schema.
Clone Of:
: 1839173 (view as bug list)
Environment:
Last Closed: 2020-09-29 19:46:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 4121 0 None closed deadlock when updating the schema 2020-12-09 00:20:41 UTC
Red Hat Product Errata RHBA-2020:3894 0 None None None 2020-09-29 19:48:24 UTC

Comment 7 Marc Sauton 2020-05-05 00:51:26 UTC
*** Bug 1830435 has been marked as a duplicate of this bug. ***

Comment 9 thierry bordaz 2020-05-05 15:32:52 UTC
upstream ticket https://pagure.io/389-ds-base/issue/51068

Comment 10 thierry bordaz 2020-05-07 14:55:07 UTC
Fix pushed upstream => POST

Comment 11 joel 2020-05-08 19:29:33 UTC
Hello,

I am watching the RedHat IT case, do we have a fix we can provide to our customers?

Thanks,

Comment 12 Marc Sauton 2020-05-08 21:41:36 UTC
I can look into that, but at a glance, the RHEL-7 389-ds-base hotfix would be for 1.3.10 , not 1.3.9

Comment 13 Marc Sauton 2020-05-09 00:39:08 UTC
I made a RHEL-7.8 389-ds-base-1.3.10 hotfix , attached to the sf case number 02643823 , not much testing done on it.

I am trying to do a RHEL-7.7 389-ds-base-1.3.9 hotfix , but the koji build command I used a few minutes earlier correctly, cannot reach http://brewweb.devel.redhat.com/ at the moment, not sure what is going on.

Comment 14 thierry bordaz 2020-05-11 08:03:59 UTC
Hello,

The fix https://pagure.io/389-ds-base/issue/51068 is easy to backport and Marc made a hotfix [1].
I initially thought the bug was rare but I am probably wrong as it happened several time recently. There is not workaround, the trigger (update of schema) can not be prevented but I think to mitigate the risk any change of schema (direct ldapmodify or upgrade of an instance with new schema) should preferably done during calm period.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1824930#c13

Comment 15 Marc Sauton 2020-05-11 18:01:25 UTC
I made another hotfix for RHEL-7.7 389-ds-base-1.3.9.1-10 , waiting on feedback.
there was some internal outage this weekend.

Comment 20 Viktor Ashirov 2020-06-11 10:55:52 UTC
Build tested: 389-ds-base-1.3.10.2-5.el7.x86_64

Steps:

1. Add 4000 entries:
ldclt -D "cn=Directory Manager" -w password -f cn=userXXXXX -b "ou=people,dc=example,dc=com" -e add,person,incr,noloop,commoncounter -r0 -R4000

2. Set small entry cache and restart dirsrv:

dn: cn=config,cn=ldbm database,cn=plugins,cn=config
changetype: modify
replace: nsslapd-cache-autosize
nsslapd-cache-autosize: 0
-
replace: nsslapd-dbcachesize
nsslapd-dbcachesize: 512001
-

3. Start search and mod loads in a different terminal:
ldclt -D "cn=Directory Manager" -w password -f cn=userXXXXX -b "ou=people,dc=example,dc=com" -e  esearch,incr,commoncounter -r0 -R4000
ldclt -D "cn=Directory Manager" -w password -f cn=userXXXXX -b "ou=people,dc=example,dc=com" -e incr,commoncounter,attreplace=description:valueXXXXXXXXXX -r0 -R4000

4. Do a schema mod:
cat schema-mod.ldif
dn: cn=schema
changetype: modify
add: attributetypes
attributetypes: ( 8.9.10.11.12.13.14 NAME 'MozAttribute' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'Mozilla Dummy Schema' )
-
add: objectclasses
objectclasses: ( 1.2.3.4.5.6.7 NAME 'MozillaObject' SUP top MUST ( objectclass $ cn ) MAY ( MozAttribute ) X-ORIGIN 'user defined' )"
-

ldapmodify -D cn=directory\ manager -w password  -f schema-mod.ldif

With 389-ds-base-1.3.10.2-3.el7.x86_64 schema mod operation would hang indefinitely.
With 389-ds-base-1.3.10.2-5.el7.x86_64 schema mod operation completes immediately. Marking as VERIFIED.

Comment 24 errata-xmlrpc 2020-09-29 19:46:56 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 (389-ds-base bug fix and enhancement 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/RHBA-2020:3894


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