directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRSERVER-1979) Adding child entries can't be found after restarting server
Date Wed, 11 Jun 2014 04:17:01 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-1979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14027395#comment-14027395
] 

Emmanuel Lecharny commented on DIRSERVER-1979:
----------------------------------------------

I confirm the pb. I wrote a test that demonstrate it. The first time, I added the child *before*
shutting down the server, and in this case, we correctly see it when we restart the server.
Then if we create a second child at the same level, it is seen too.

{code}
Adding child1 : cn=child1,cn=imadmin,ou=groups,dc=test,ou=system
Entries found :
--------------
ou=groups,dc=test,ou=system
cn=child1,cn=imadmin,ou=groups,dc=test,ou=system
dc=test,ou=system
cn=imadmin,ou=groups,dc=test,ou=system
Stopping the service---------------------------------

Starting the service---------------------------------
Adding child2 : cn=child2,cn=imadmin,ou=groups,dc=test,ou=system
Enties found :
--------------
ou=groups,dc=test,ou=system
cn=child1,cn=imadmin,ou=groups,dc=test,ou=system
cn=child2,cn=imadmin,ou=groups,dc=test,ou=system
dc=test,ou=system
cn=imadmin,ou=groups,dc=test,ou=system
Stopping the service---------------------------------

Starting the service---------------------------------

Entries found :
--------------
ou=groups,dc=test,ou=system
cn=child1,cn=imadmin,ou=groups,dc=test,ou=system
cn=child2,cn=imadmin,ou=groups,dc=test,ou=system
dc=test,ou=system
cn=imadmin,ou=groups,dc=test,ou=system
{code}

The same test, but this time, we shutdown the server *before* adding the child entry :

{code}
Entries found :
--------------
ou=groups,dc=test,ou=system
dc=test,ou=system
cn=imadmin,ou=groups,dc=test,ou=system
Stopping the service---------------------------------

Starting the service---------------------------------
Adding child2 : cn=child2,cn=imadmin,ou=groups,dc=test,ou=system
Child2 exists :
Entry
    dn[n]: cn=child2,cn=imadmin,ou=groups,dc=test,ou=system
    objectclass: top
    objectclass: groupOfUniqueNames
    uniquemember: uid=dummy2
    cn: child2
    description: child2

Entries found :
--------------
ou=groups,dc=test,ou=system
dc=test,ou=system
cn=imadmin,ou=groups,dc=test,ou=system
Stopping the service---------------------------------

Starting the service---------------------------------
Child2 STILL exists :
Entry
    dn[n]: cn=child2,cn=imadmin,ou=groups,dc=test,ou=system
    objectclass: top
    objectclass: groupOfUniqueNames
    uniquemember: uid=dummy2
    cn: child2
    description: child2


Entries found :
--------------
ou=groups,dc=test,ou=system
dc=test,ou=system
cn=imadmin,ou=groups,dc=test,ou=system
{code}

As we can see, child2 is created, it exists, but it's not found by a subtree scope search...

> Adding child entries can't be found after restarting server
> -----------------------------------------------------------
>
>                 Key: DIRSERVER-1979
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1979
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M16, 2.0.0-M17
>         Environment: windows seven.
>            Reporter: Fortunato Margariti
>
> Suppose to have the following situation on the Server (created with ldif):
> dc=xxx,dc=com
> ........ou=groups
> .............. cn=aim
> .............. cn=ais
> .................... cn=aisOperator
> .............. cn=admin
> If you stop and restart the server and then create a subentry (named for example "child")
under any leaf on the tree (in this case under "aim" or "aisOperator" or "admin"), happen
the following:
> 1) the new entry is not visible with a search that start
>  from ou=groups,dc=xxx,dc=com 
> 2) the new entry is visible only if the search start from dc=xxx,dc=com
>    or starting from the leaf: ou=aim,ou=groups,dc=xxx,dc=com
> 3) If you perform an ldif export on ou=groups,dc=xxx,dc=com, you can't find the new added
subentry.
> 4) if the subentry is created under cn=ais (that is not a leaf because has already a
subentry) the new "child" entry is founded by the search
> I was thinking that the problem was related to DIRSERVER-1976 (solved on M17) but we
have the same problems also on this version.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message