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 "Davide Giannella (JIRA)" <ji...@apache.org> on 2016/02/08 10:31:40 UTC

[jira] [Closed] (OAK-3920) OakDirectory not usable in readOnly mode with a readOnly builder

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

Davide Giannella closed OAK-3920.
---------------------------------

> OakDirectory not usable in readOnly mode with a readOnly builder
> ----------------------------------------------------------------
>
>                 Key: OAK-3920
>                 URL: https://issues.apache.org/jira/browse/OAK-3920
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.3.15
>
>
> When using {{OakDirectory}} with a read only builder say in LuceneCommand in oak-console following error is seen
> {noformat}
> lc info /oak:index/users
> ERROR java.lang.UnsupportedOperationException:
> This builder is read-only.
>        at org.apache.jackrabbit.oak.spi.state.ReadOnlyBuilder.unsupported (ReadOnlyBuilder.java:45)
>        at org.apache.jackrabbit.oak.spi.state.ReadOnlyBuilder.child (ReadOnlyBuilder.java:190)
>        at org.apache.jackrabbit.oak.spi.state.ReadOnlyBuilder.child (ReadOnlyBuilder.java:35)
>        at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory.<init> (OakDirectory.java:93)
>        at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory.<init> (OakDirectory.java:87)
>        at org.apache.jackrabbit.oak.console.commands.LuceneCommand.getDirectory (LuceneCommand.groovy:128)
>        at org.apache.jackrabbit.oak.console.commands.LuceneCommand.this$4$getDirectory (LuceneCommand.groovy)
>        at org.apache.jackrabbit.oak.console.commands.LuceneCommand$_closure1.doCall (LuceneCommand.groovy:55)
> {noformat}



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