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 2016/01/25 12:57:39 UTC

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

Chetan Mehrotra created OAK-3920:
------------------------------------

             Summary: 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.4


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)