Marco Piovesana created OAK-4530: ------------------------------------ Summary: 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)