Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1074306 - Under heavy stress, failure of turning a tombstone into glue makes the server hung
Under heavy stress, failure of turning a tombstone into glue makes the server...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base (Show other bugs)
7.0
Unspecified Unspecified
low Severity unspecified
: rc
: ---
Assigned To: Rich Megginson
Viktor Ashirov
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-09 10:53 EDT by Noriko Hosoi
Modified: 2015-03-05 04:33 EST (History)
1 user (show)

See Also:
Fixed In Version: 389-ds-base-1.3.3.1-1.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-03-05 04:33:59 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0416 normal SHIPPED_LIVE Important: 389-ds-base security, bug fix, and enhancement update 2015-03-05 09:26:33 EST

  None (edit)
Description Noriko Hosoi 2014-03-09 10:53:25 EDT
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/389/ticket/47737

Turning a tombstone entry to a glue entry is done in a while loop (create_glue_entry:urp_glue.c)  Unless the transformation is successful (or LDAP_NO_SUCH_OBJECT), it cannot exit from the loop.  But under a stress, there could be a tombstone and a conflict entry coexist, and do_create_glue_entry keeps returning LDAP_ALREADY_EXISTS.  In such a case, we need to give up greating a glue.
{{{
[..] NSMMReplicationPlugin - conn=7 op=1939 csn=531a1443000700030000: Can't created glue entry ou=test,ou=projects,o=bees,ou=organizations,dc=cvsdude,dc=com uniqueid=ee68e001-a62811e3-bc8ab407-12c832a2, error 68
[..] NSMMReplicationPlugin - conn=7 op=1939 csn=531a1443000700030000: Can't created glue entry ou=test,ou=projects,o=bees,ou=organizations,dc=cvsdude,dc=com uniqueid=ee68e001-a62811e3-bc8ab407-12c832a2, error 68
[..] NSMMReplicationPlugin - conn=7 op=1939 csn=531a1443000700030000: Can't created glue entry ou=test,ou=projects,o=bees,ou=organizations,dc=cvsdude,dc=com uniqueid=ee68e001-a62811e3-bc8ab407-12c832a2, error 68
[..]
}}}


{{{
Thread 32 (Thread 0x7f6ac77fe700 (LWP 24906)):
#0  0x00007f6ae4e3e74d in fsync () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f6ae5492e8b in pt_Fsync (fd=0x7f6ae81b15c0) at ../../../nspr/pr/src/pthreads/ptio.c:1530
#2  0x00007f6ae6e8afe7 in vslapd_log_error (fp=0x7f6ae81b15c0, subsystem=0x7f6adb19ad90 "NSMMReplicationPlugin",
    fmt=0x7f6adb1a6fa0 "%s: Can't created glue entry %s uniqueid=%s, error %d\n", ap=0x7f6ac77f7438, locked=1)
    at ldap/servers/slapd/log.c:1953
#3  0x00007f6ae6e8aa52 in slapd_log_error_proc_internal (subsystem=0x7f6adb19ad90 "NSMMReplicationPlugin",
    fmt=0x7f6adb1a6fa0 "%s: Can't created glue entry %s uniqueid=%s, error %d\n", ap_err=0x7f6ac77f7420,
    ap_file=0x7f6ac77f7438) at ldap/servers/slapd/log.c:1809
#4  0x00007f6ae6e8b1d5 in slapi_log_error (severity=0, subsystem=0x7f6adb19ad90 "NSMMReplicationPlugin",
    fmt=0x7f6adb1a6fa0 "%s: Can't created glue entry %s uniqueid=%s, error %d\n") at ldap/servers/slapd/log.c:1994
#5  0x00007f6adb17a6b3 in create_glue_entry (pb=0x7f6aa40b7f90,
    sessionid=0x7f6ac77f7690 "conn=7 op=1939 csn=531a1443000700030000", dn=0x7f6aa40c6370,
    uniqueid=0x7f6aa40bee60 "ee68e001-a62811e3-bc8ab407-12c832a2", opcsn=0x7f6aa40bee40)
    at ldap/servers/plugins/replication/urp_glue.c:257
#6  0x00007f6adb1791eb in urp_add_resolve_parententry (pb=0x7f6aa40b7f90,
    sessionid=0x7f6ac77f7690 "conn=7 op=1939 csn=531a1443000700030000", entry=0x7f6aa40badf0, parententry=0x0,
    opcsn=0x7f6aa40bee40) at ldap/servers/plugins/replication/urp.c:908
#7  0x00007f6adb177e29 in urp_add_operation (pb=0x7f6aa40b7f90) at ldap/servers/plugins/replication/urp.c:165
#8  0x00007f6adb15ae22 in multimaster_bepreop_add (pb=0x7f6aa40b7f90) at ldap/servers/plugins/replication/repl5_plugins.c:711
#9  0x00007f6ae6eade99 in plugin_call_func (list=0x7f6ae830fd90, operation=450, pb=0x7f6aa40b7f90, call_one=0)
    at ldap/servers/slapd/plugin.c:1453
#10 0x00007f6ae6eadd59 in plugin_call_list (list=0x7f6ae830fd90, operation=450, pb=0x7f6aa40b7f90)
    at ldap/servers/slapd/plugin.c:1415
#11 0x00007f6ae6eabfe1 in plugin_call_plugins (pb=0x7f6aa40b7f90, whichfunction=450) at ldap/servers/slapd/plugin.c:398
#12 0x00007f6adc085696 in ldbm_back_add (pb=0x7f6aa40b7f90) at ldap/servers/slapd/back-ldbm/ldbm_add.c:257
#13 0x00007f6ae6e478aa in op_shared_add (pb=0x7f6aa40b7f90) at ldap/servers/slapd/add.c:681
#14 0x00007f6ae6e468b4 in do_add (pb=0x7f6aa40b7f90) at ldap/servers/slapd/add.c:258
#15 0x00007f6ae7379935 in connection_dispatch_operation (conn=0x7f6ae71e3f48, op=0x7f6aa40b6330, pb=0x7f6aa40b7f90)
    at ldap/servers/slapd/connection.c:579
#16 0x00007f6ae737b32c in connection_threadmain () at ldap/servers/slapd/connection.c:2339
#17 0x00007f6ae5494c86 in _pt_root (arg=0x7f6ae84eb130) at ../../../nspr/pr/src/pthreads/ptthread.c:204
#18 0x00007f6ae4e37d15 in start_thread (arg=0x7f6ac77fe700) at pthread_create.c:308
#19 0x00007f6ae495453d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114
}}}
Comment 2 Jenny Galipeau 2014-10-23 10:34:46 EDT
For verification see https://bugzilla.redhat.com/show_bug.cgi?id=1080185#c1 , was also included in 6.6 release although not linked to this bug.  6.6 bug https://bugzilla.redhat.com/show_bug.cgi?id=1074306
Comment 3 Viktor Ashirov 2015-01-23 11:06:35 EST
Verified during the verification of https://bugzilla.redhat.com/show_bug.cgi?id=1080186#c6 using the same reproducer.
Comment 5 errata-xmlrpc 2015-03-05 04:33:59 EST
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/RHSA-2015-0416.html

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