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 "Michael Dürig (JIRA)" <ji...@apache.org> on 2015/04/15 15:43:58 UTC

[jira] [Commented] (OAK-2775) Oak builder changes its state during repository creation

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

Michael Dürig commented on OAK-2775:
------------------------------------

This is somewhat a duplicate of OAK-2736. The Oak builder is not mean to be used more than once. If needed it would be an option to add a {{clone}} method to it so you could obtain a fresh instance from a stale one. 

> Oak builder changes its state during repository creation
> --------------------------------------------------------
>
>                 Key: OAK-2775
>                 URL: https://issues.apache.org/jira/browse/OAK-2775
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: oak-core
>    Affects Versions: 1.2
>            Reporter: Francesco Mari
>         Attachments: OAK-2775-01.patch
>
>
> The {{Oak#createContentRepository()}} method changes the state of the builder at every invocation. In particular, it always adds a new {{CommitHook}}.
> The observable behavior is that all the {{IndexEditor}} instances are executed twice when the {{Oak}} and {{Jcr}} builders are used together - i.e. when both an instance of {{Repository}} and {{ContentRepository}} are needed.



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