You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by William McErlane <wi...@dice.com> on 2015/04/16 22:16:14 UTC

ClusterNode Documentation request

Hi folks,

I’ve developed a JCR store using apache oak, I have encountered a concurrent issue when I edit the contents of a node within one server these changes are not reflected when I try to retrieve the contents from another server. Is there any documentation on how I can ensure that the different node clusters are synced?

Cheers,

William 

Re: ClusterNode Documentation request

Posted by Marcel Reutegger <mr...@adobe.com>.
Hi William,

there's documentation about the DocumentNodeStore implementation
here: http://jackrabbit.apache.org/oak/docs/nodestore/documentmk.html

it is rather low level. Some high level documentation is available
here: http://jackrabbit.apache.org/oak/docs/clustering.html

but should definitively be improved, e.g. with some examples how
to setup. we still have an open issue to improve it:
https://issues.apache.org/jira/browse/OAK-1841


regarding your issue: how exactly do you setup Oak? Are you using
MongoDB or an RDB as your backend? Either backend will only
give you an eventual consistent store with Oak. Changes on one
cluster node are not immediately visible on the other. there
is a background thread, which makes those 'external' changes
visible. the default is to poll every second. if you are running
tests you can also manually trigger these background operations.
see e.g. 
https://github.com/apache/jackrabbit-oak/blob/1.2/oak-core/src/test/java/or
g/apache/jackrabbit/oak/plugins/document/ClusterTest.java

Regards
 Marcel

On 16/04/15 22:16, "William McErlane" <wi...@dice.com> wrote:

>Hi folks,
>
>I¹ve developed a JCR store using apache oak, I have encountered a
>concurrent issue when I edit the contents of a node within one server
>these changes are not reflected when I try to retrieve the contents from
>another server. Is there any documentation on how I can ensure that the
>different node clusters are synced?
>
>Cheers,
>
>William