Bug 767024 - MMR: when a subtree is deleted and the backend is exported with -r, importing the ldif fails.
Summary: MMR: when a subtree is deleted and the backend is exported with -r, importing...
Keywords:
Status: CLOSED DUPLICATE of bug 736431
Alias: None
Product: 389
Classification: Retired
Component: Replication - General
Version: 1.2.10
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Noriko Hosoi
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-13 01:34 UTC by Noriko Hosoi
Modified: 2015-01-04 23:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-13 16:19:21 UTC
Embargoed:


Attachments (Terms of Use)

Description Noriko Hosoi 2011-12-13 01:34:13 UTC
Description of problem:
Steps to reproduce:
1) set up MMR

2) create a subtree in the database
dc=example,dc=com
         |
    ou=orgunit0
    |          \
ou=orgunit00  ou=orgunit01
    |            \
uid=tuser000  uid=tuser010
uid=tuser001  uid=tuser011

Delete ou=orgunit0

3) shutdown the server

4) export the backend:
   # /usr/lib[64]/dirsrv/slapd-ID/db2ldif -n userRoot -r

5) import the exported file
   # /usr/lib[64]/dirsrv/slapd-ID/ldif2db -n userRoot -i /path/to/ldif/file
[..] - import userRoot: Processing file "/var/lib/dirsrv/slapd-kiki0/ldif/kiki0-userRoot-2011_12_12_172236.ldif"
[..] - import userRoot: Finished scanning file "/var/lib/dirsrv/slapd-kiki0/ldif/kiki0-userRoot-2011_12_12_172236.ldif" (18 entries)
[..] - import userRoot: WARNING: Skipping entry "nsuniqueid=ceb8df01-252711e1-856cfebb-9066bfc6,ou=orgunit00,ou=orgunit0,dc=example,dc=com" which has no parent, ending at line 201 of file "/var/lib/dirsrv/slapd-kiki0/ldif/kiki0-userRoot-2011_12_12_172236.ldif"
[..] - import userRoot: WARNING: Skipping entry "nsuniqueid=ceb8df02-252711e1-856cfebb-9066bfc6,ou=orgunit01,ou=orgunit0,dc=example,dc=com" which has no parent, ending at line 218 of file "/var/lib/dirsrv/slapd-kiki0/ldif/kiki0-userRoot-2011_12_12_172236.ldif"
[..] - import userRoot: WARNING: Skipping entry "nsuniqueid=ceb8df03-252711e1-856cfebb-9066bfc6,uid=tuser000,ou=orgunit00,ou=orgunit0,dc=example,dc=com" which has no parent, ending at line 240 of file "/var/lib/dirsrv/slapd-kiki0/ldif/kiki0-userRoot-2011_12_12_172236.ldif"
[..] - import userRoot: WARNING: Skipping entry "nsuniqueid=ceb8df04-252711e1-856cfebb-9066bfc6,uid=tuser001,ou=orgunit00,ou=orgunit0,dc=example,dc=com" which has no parent, ending at line 262 of file "/var/lib/dirsrv/slapd-kiki0/ldif/kiki0-userRoot-2011_12_12_172236.ldif"
[..] - import userRoot: WARNING: Skipping entry "nsuniqueid=ceb8df05-252711e1-856cfebb-9066bfc6,uid=tuser010,ou=orgunit01,ou=orgunit0,dc=example,dc=com" which has no parent, ending at line 284 of file "/var/lib/dirsrv/slapd-kiki0/ldif/kiki0-userRoot-2011_12_12_172236.ldif"
[..] - import userRoot: WARNING: Skipping entry "nsuniqueid=ceb8df06-252711e1-856cfebb-9066bfc6,uid=tuser011,ou=orgunit01,ou=orgunit0,dc=example,dc=com" which has no parent, ending at line 306 of file "/var/lib/dirsrv/slapd-kiki0/ldif/kiki0-userRoot-2011_12_12_172236.ldif"
[..] - import userRoot: WARNING: bad entry: ID 12
[..] - import userRoot: WARNING: bad entry: ID 13
    [...]
[..] - import userRoot: WARNING: bad entry: ID 16
[..] - import userRoot: WARNING: bad entry: ID 17
[..] - import userRoot: Workers finished; cleaning up...
[..] - import userRoot: Workers cleaned up.
[..] - import userRoot: Cleaning up producer thread...
[..] - import userRoot: Indexing complete.  Post-processing...
[..] - import userRoot: Flushing caches...
[..] - import userRoot: Closing files...
[..] - All database threads now stopped
[..] - import userRoot: Import complete.  Processed 18 entries (6 were skipped) in 5 seconds. (3.60 entries/sec)

Comment 1 Noriko Hosoi 2012-01-03 22:30:26 UTC
[trac] https://fedorahosted.org/389/ticket/2

Comment 2 Martin Kosek 2012-01-04 13:06:34 UTC
Upstream ticket:
https://fedorahosted.org/389/ticket/8

Comment 3 Noriko Hosoi 2012-01-05 20:39:20 UTC
Note: https://fedorahosted.org/389/ticket/8 is closed as a duplicate of ticket 2.

Comment 4 Rich Megginson 2012-01-10 18:04:03 UTC
marking as screened because it has been cloned upstream

Comment 5 Rich Megginson 2012-01-13 16:19:21 UTC

*** This bug has been marked as a duplicate of bug 736431 ***


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