[ https://issues.apache.org/jira/browse/SLING-935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger closed SLING-935. ----------------------------------- Resolution: Fixed Ensure the repository is disposed off and the field is cleared if pingRepository succeeds but pingAndCheck fails in startRepository in Rev. 767390. Also add some more DEBUG logging around starting the repository. > AbstractSlingRepository.startRepository() may not dispose off repository > ------------------------------------------------------------------------ > > Key: SLING-935 > URL: https://issues.apache.org/jira/browse/SLING-935 > Project: Sling > Issue Type: Bug > Components: JCR > Reporter: Felix Meschberger > Assignee: Felix Meschberger > Fix For: JCR Base 2.0.4 > > > The AbstractSlingRepository.startRepository starts (or accesses) the > repository and does two checks: pingRepository to see whether the repository > replies and pingAndCheck to see whether the repository replies and a session > may be acquired. In certain situations, the pinRepository method may return > true, while the pingAndCheck method returns false. This causes the acquired > repository not not be disposed off by calling the disposeRepository method > (only the field is nulled out). > This may result in an unusable repository setup. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.