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 "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2013/10/30 17:09:26 UTC

[jira] [Commented] (OAK-1132) AbstractRoot getQueryEngine creates a new revision on each call

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

Alex Parvulescu commented on OAK-1132:
--------------------------------------

actually each #executeQuery call creates a new revision, as that method calls the #getExecutionContext method, I'll update the title to reflect this.

> AbstractRoot getQueryEngine creates a new revision on each call
> ---------------------------------------------------------------
>
>                 Key: OAK-1132
>                 URL: https://issues.apache.org/jira/browse/OAK-1132
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segmentmk
>            Reporter: Alex Parvulescu
>
> It looks like the #getQueryEngine relies on the node state provided by _AbstractRoot.this.getRootState()_.
> On the segmentmk it looks like each call creates a new revision [0].
> One option is to switch to the base state, but it looks like there are some tests failing.
> [0] http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentRootBuilder.java?view=markup#l46



--
This message was sent by Atlassian JIRA
(v6.1#6144)