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 2015/03/25 10:02:52 UTC

[jira] [Commented] (OAK-2624) Move out non essential task processing from DocumentNodeStore background thread

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

Chetan Mehrotra commented on OAK-2624:
--------------------------------------

Patch looks fine. So as per patch we are moving Steps 1-4 to a different thread and rest to a different thread both with deafult {{asyncDelay}} frequency. Possibly for the second one we use a different delay say with more delay so as to not compete with the read thread which is most important one to us

> Move out non essential task processing from DocumentNodeStore background thread
> -------------------------------------------------------------------------------
>
>                 Key: OAK-2624
>                 URL: https://issues.apache.org/jira/browse/OAK-2624
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: mongomk
>            Reporter: Chetan Mehrotra
>            Assignee: Stefan Egli
>             Fix For: 1.1.8
>
>         Attachments: OAK-2624-2.patch, OAK-2624.patch
>
>
> The {{DocumentNodeStore background thread}} handles quite a few task currently like
> # Clean orphaned branches
> # Clean collisions
> # Split documents
> # Background write - write back pending updates to _lastRev
> # Detect change in head revision from backend
> # Cache invalidation
> # Revision Comparator purge
> The background operation is scheduled to be performed every second (1s frequency). However at times some of the above task take more time which delay in picking up the changes from backend. For quick propagation of changes in cluster it is essential that work done in background thread is performed quickly.  To enable that we should move out task which are not directly related to _head revision change_ like splitDocument.



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