Bug 1406101
Summary: | Importing big ldif file with duplicate DNs throwing "unable to flush" error | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Noriko Hosoi <nhosoi> |
Component: | 389-ds-base | Assignee: | mreynolds |
Status: | CLOSED ERRATA | QA Contact: | Viktor Ashirov <vashirov> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.3 | CC: | amsharma, nkinder, rmeggins |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 389-ds-base-1.3.6.1-3.el7 | Doc Type: | Bug Fix |
Doc Text: |
Bug: When an import fails, there are unable to flush error messages.
Fix: When an import fails, it closes the database files before deleting them.
Result: No more "unable to flush" error messages are delivered.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-01 21:12:24 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: |
Description
Noriko Hosoi
2016-12-19 17:46:40 UTC
[0 root@qeos-205 export]# rpm -qa | grep 389 389-ds-base-1.3.6.1-9.el7.x86_64 389-ds-base-debuginfo-1.3.6.1-9.el7.x86_64 389-ds-base-snmp-1.3.6.1-9.el7.x86_64 389-ds-base-libs-1.3.6.1-9.el7.x86_64 [0 root@qeos-205 export]# /usr/lib64/dirsrv/slapd-qeos-205/ldif2db.pl -D "cn=Directory Manager" -w Secret123 -s "dc=example,dc=com" -n userRoot -i /export/data.ldif Successfully added task entry "cn=import_2017_5_2_4_18_2, cn=import, cn=tasks, cn=config" Error logs ========== [02/May/2017:04:18:02.683800764 -0400] - INFO - ldbm_back_ldif2ldbm - Bringing userRoot offline... [02/May/2017:04:18:02.689439923 -0400] - INFO - dblayer_instance_start - Import is running with nsslapd-db-private-import-mem on; No other process is allowed to access the database [02/May/2017:04:18:02.700635435 -0400] - INFO - import_main_offline - import userRoot: Beginning import job... [02/May/2017:04:18:02.710785623 -0400] - INFO - import_main_offline - import userRoot: Index buffering enabled with bucket size 17 [02/May/2017:04:18:02.912644641 -0400] - INFO - import_producer - import userRoot: Processing file "/export/data.ldif" [02/May/2017:04:18:02.917887589 -0400] - INFO - import_producer - import userRoot: Finished scanning file "/export/data.ldif" (3 entries) [02/May/2017:04:18:03.138419513 -0400] - ERR - _entryrdn_insert_key - Same DN (dn: ou=myDups00001,dc=example,dc=com) is already in the entryrdn file with different ID 2. Expected ID is 3. [02/May/2017:04:18:03.141440304 -0400] - ERR - foreman_do_entryrdn - import userRoot: Duplicated DN detected: "ou=myDups00001,dc=example,dc=com": Entry ID: (3) [02/May/2017:04:18:03.216392581 -0400] - ERR - import_run_pass - import userRoot: Thread monitoring returned: -23 [02/May/2017:04:18:03.217953877 -0400] - ERR - import_main_offline - import userRoot: Aborting all Import threads... [02/May/2017:04:18:08.725796213 -0400] - ERR - import_main_offline - import userRoot: Import threads aborted. [02/May/2017:04:18:08.735978386 -0400] - INFO - import_main_offline - import userRoot: Closing files... [02/May/2017:04:18:08.748203709 -0400] - ERR - import_main_offline - import userRoot: Import failed. cat /export/data.ldif ==================== dn: dc=example,dc=com objectclass: top objectclass: domain dc: example dn: ou=myDups00001,dc=example,dc=com objectclass: top objectclass: organizationalUnit ou: myDups00001 dn: ou=myDups00001,dc=example,dc=com objectclass: top objectclass: organizationalUnit ou: myDups00001 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://access.redhat.com/errata/RHBA-2017:2086 |