jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: Exception when operating through load balancer
Date Thu, 03 Nov 2011 13:16:17 GMT
Hi Francisco,

There's a small delay on when content changes in one cluster node
become properly visible on another node, which is why I'd recommended
using a Jackrabbit cluster  only in a setup that supports session
affinity. Otherwise you can easily end up seeing partially
inconsistent results for a short while after updates. And definitely
it'll confuse the server if you're trying to save content and the
save() call ends up sending multiple requests all to separate cluster

Anyway, such a failed save() should not be able to cause repository
inconsistencies. Do you still see the problems when accessing the
repository locally?

To check for consistency issues you can add the consistencyCheck
parameter [1] to the PersistenceManager entry in the workspace.xml
configuration file.

    <param name="consistencyCheck" value="true"/>

At next restart the repository will run a full consistency check of
that workspace and log warnings about all problems it may find.

[1] http://jackrabbit.apache.org/api/2.2/org/apache/jackrabbit/core/persistence/pool/BundleDbPersistenceManager.html#setConsistencyCheck(java.lang.String)


Jukka Zitting

View raw message