You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2016/07/04 13:19:10 UTC

[jira] [Commented] (OAK-4530) Session modification discarded when repository closed too soon

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

Marcel Reutegger commented on OAK-4530:
---------------------------------------

Can you please attach a full test that also includes how you create the repository? Thanks.

> Session modification discarded when repository closed too soon
> --------------------------------------------------------------
>
>                 Key: OAK-4530
>                 URL: https://issues.apache.org/jira/browse/OAK-4530
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.4.4
>            Reporter: Marco Piovesana
>
> If I close the repository right after creating a new group (and saving the session) the modification is not persisted.
> {code: borderStyle=solid}
> UserManager userManager = ((SessionImpl)adminSession).getUserManager();
> Group group = userManager.createGroup("myGroup");
> adminSession.save();
> adminSession.logout();
> ((JackrabbitRepository) repository).shutdown();
> {code}
> When i restart the repository the group "myGroup" does not exist but no error is logged anywhere. However, if i put a _Thread.sleep(3000l)_ before shutting down the repository, the group is persisted.
> Am I doing something wrong?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)