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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2014/06/24 12:19:24 UTC

[jira] [Updated] (OAK-1816) Oak#createContentRepository never unregisters some of its services

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

Chetan Mehrotra updated OAK-1816:
---------------------------------

    Attachment: OAK-1816.patch

Patch which takes the first approach by making ContentRepositoryImpl implements Closeable. However now the calling code has to check if the returned contentRepository is closeable and close it then upon shutdown.

The fix also resolves OAK-1485

Or we can make Oak instance statefull and have a lifecycle handling there

> Oak#createContentRepository never unregisters some of its services
> ------------------------------------------------------------------
>
>                 Key: OAK-1816
>                 URL: https://issues.apache.org/jira/browse/OAK-1816
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Michael Dürig
>         Attachments: OAK-1816.patch
>
>
> {{Oak#createContentRepository}} registers a bunch of services with the {{Whiteboard}} (MBeans, Executor, Observer) that are never unregistered. 



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