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 2012/12/07 17:23:23 UTC

[jira] [Resolved] (OAK-267) Repository fails to start with - "cannot branch off a private branch"

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

Michael Dürig resolved OAK-267.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.6

The root cause for this issue has been fixed in OAK-276.
                
> Repository fails to start with - "cannot branch off a private branch"
> ---------------------------------------------------------------------
>
>                 Key: OAK-267
>                 URL: https://issues.apache.org/jira/browse/OAK-267
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: mk
>    Affects Versions: 0.5
>            Reporter: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 0.6
>
>         Attachments: stacktrace.txt
>
>
> On starting a Sling instance I am get following exception (complete stacktrace would be attached)
> {noformat}
> org.apache.jackrabbit.mk.api.MicroKernelException: java.lang.Exception: cannot branch off a private branch
>  	at org.apache.jackrabbit.mk.core.MicroKernelImpl.branch(MicroKernelImpl.java:508)
>  	at org.apache.jackrabbit.oak.kernel.KernelNodeStoreBranch.<init>(KernelNodeStoreBranch.java:56)
>  	at org.apache.jackrabbit.oak.kernel.KernelNodeStore.branch(KernelNodeStore.java:101)
>  	at org.apache.jackrabbit.oak.core.RootImpl.refresh(RootImpl.java:160)
>  	at org.apache.jackrabbit.oak.core.RootImpl.<init>(RootImpl.java:111)
>  	at org.apache.jackrabbit.oak.core.ContentSessionImpl.getCurrentRoot(ContentSessionImpl.java:78)
>  	at org.apache.jackrabbit.oak.jcr.SessionDelegate.<init>(SessionDelegate.java:94)
>  	at org.apache.jackrabbit.oak.jcr.RepositoryImpl.login(RepositoryImpl.java:137)
> {noformat}
> This error does not away after restart also. On debugging StoredCommit#branchRootId was not null.
> I think the last shutdown was clean as per the logs. I was debugging some query issue which resulted in an exception so that might have something to do with this. Logging a bug for now to keep track. If complete repo (~70 MB of .mk folder)is required then let me know and I would share it somewhere 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira