[jboss-jira] [JBoss JIRA] (JGRP-1825) ReadWriteLock
Manuel Dominguez Sarmiento (JIRA)
issues at jboss.org
Tue Nov 3 11:40:00 EST 2015
[ https://issues.jboss.org/browse/JGRP-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125003#comment-13125003 ]
Manuel Dominguez Sarmiento commented on JGRP-1825:
--------------------------------------------------
The following articles give a good overview of the current design:
http://codespot.net/2014/02/03/hibernate-caching-strategies/
http://clustermania.blogspot.com.ar/2009/07/with-read-write-hibernate-2nd-level.html?m=1
However, the soft-lock algorithm for the READ-WRITE strategy requires that, for being effective in a cluster:
a) Updates to the cluster are replicated synchronously. This is something that the Ehcache-JGroups replication module does somewhat poorly, because even though "synchronous" replication is supported, the implementation does not wait for the RPC acknowledgement - we've patched this some years ago and we maintain our own fork, since Terracotta stopped any this of development of clustering solutions for Ehcache which do not involve their commercial offerings.
b) Read-write locks guarding access the the replicated synchronous cache, otherwise transactional consistency is compromised.
> ReadWriteLock
> -------------
>
> Key: JGRP-1825
> URL: https://issues.jboss.org/browse/JGRP-1825
> Project: JGroups
> Issue Type: Feature Request
> Reporter: Bela Ban
> Assignee: Bela Ban
> Fix For: 3.6
>
> Attachments: JgroupTest.zip
>
>
> Adds a read/write lock to LockService. The impl is attached
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list