[ 
https://issues.apache.org/jira/browse/OAK-4530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marcel Reutegger resolved OAK-4530.
-----------------------------------
    Resolution: Invalid

The JCR RepositoryImpl does not control the life cycle of the NodeStore, it 
needs to be shut down separately.

See also: http://jackrabbit.apache.org/oak/docs/construct.html

> 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)

Reply via email to