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 "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2012/09/17 09:13:07 UTC

[jira] [Commented] (OAK-304) Rename ContentSession.getCurrentRoot()

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

Marcel Reutegger commented on OAK-304:
--------------------------------------

While we are at it. Can we also clarify the JavaDoc and have it talk about consistency requirements/guarantees? The current MicroKernel implementation guarantee the latest root in a strict sense. But is this a requirement? Would it be OK for an implementation to provide eventual consistency here? That is, getLatestRoot() might not immediately return the latest root created by another session.
                
> Rename ContentSession.getCurrentRoot()
> --------------------------------------
>
>                 Key: OAK-304
>                 URL: https://issues.apache.org/jira/browse/OAK-304
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>         Attachments: OAK-304.patch
>
>
> Renaming the method would make it clear that the method is potentially expensive and the returned object reflects the head of the repository at the time the method is called.

--
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