[JBoss JIRA] (ISPN-5654) Make DeadlockDetectingLockManager aware of single-node locking
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-5654?page=com.atlassian.jira.plugin.... ]
Dan Berindei commented on ISPN-5654:
------------------------------------
Looking at the code, the deadlock detection doesn't seem to work at all in most cases. Lock intentions are only added in {{DeadlockDetectingLockManager.lock(key)}}, which doesn't get called on the transaction originator unless it's also the primary owner of the key. Thus lock intentions are never sent from the tx originator to the primary owners, and deadlock detection for multiple keys only works when all the keys are owned by the originator. And of course, same-key deadlocks cannot happen at all with the single-node locking.
I propose to remove {{DeadlockDetectingLockManager}} altogether and to deprecate the related configuration.
> Make DeadlockDetectingLockManager aware of single-node locking
> --------------------------------------------------------------
>
> Key: ISPN-5654
> URL: https://issues.jboss.org/browse/ISPN-5654
> Project: Infinispan
> Issue Type: Task
> Components: Core
> Affects Versions: 8.0.0.Beta2
> Reporter: Dan Berindei
>
> {{DeadlockDetectingLockManager}} seems to assume that the node that started a transaction acquires a local lock before replicating, which is wrong since we switched to locking only on the primary owner.
> In particular, {{isSameKeyDeadlock}} can probably be removed altogether.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 9 months
[JBoss JIRA] (ISPN-7534) Support JCache on Wildfly/EAP
by Sebastian Łaskawiec (JIRA)
[ https://issues.jboss.org/browse/ISPN-7534?page=com.atlassian.jira.plugin.... ]
Sebastian Łaskawiec edited comment on ISPN-7534 at 2/28/17 4:13 AM:
--------------------------------------------------------------------
Adam Bien created a bridge between JEE8 and JCache: https://github.com/Adopt-a-JSR/jcache-javaee
A proposed [spec xml|https://github.com/Adopt-a-JSR/jcache-javaee/blob/master/jcache-javae...] looks very interesting:
{code}
<caches>
<caching-provider>org.jsr107.ri.spi.RICachingProvider</caching-provider>
<cache name="it" key="java.lang.String" value="java.lang.String">
<configuration>
<property name="store.by.value" value="true"/>
<property name="management.enabled" value="false"/>
<property name="statistics.enabled" value="true"/>
<property name="vendor.specific" value="unicorn"/>
</configuration>
</cache>
<cache name="hack3rz" value="java.lang.String">
<configuration>
<property name="store.by.value" value="false"/>
<property name="management.enabled" value="true"/>
<property name="statistics.enabled" value="false"/>
<property name="java" value="duke"/>
</configuration>
</cache>
</caches>
{code}
As mentioned in the [JEE mailing list|https://java.net/projects/javaee-spec/lists/users/archive/2016-09/me...] this is a Proof Of Concept repo.
was (Author: sebastian.laskawiec):
Adam Bien created a bridge between JEE8 and JCache: https://github.com/Adopt-a-JSR/jcache-javaee
A proposed [spec xml|https://github.com/Adopt-a-JSR/jcache-javaee/blob/master/jcache-javae...] looks very interesting:
{code}
<caches>
<caching-provider>org.jsr107.ri.spi.RICachingProvider</caching-provider>
<cache name="it" key="java.lang.String" value="java.lang.String">
<configuration>
<property name="store.by.value" value="true"/>
<property name="management.enabled" value="false"/>
<property name="statistics.enabled" value="true"/>
<property name="vendor.specific" value="unicorn"/>
</configuration>
</cache>
<cache name="hack3rz" value="java.lang.String">
<configuration>
<property name="store.by.value" value="false"/>
<property name="management.enabled" value="true"/>
<property name="statistics.enabled" value="false"/>
<property name="java" value="duke"/>
</configuration>
</cache>
</caches>
{code}
> Support JCache on Wildfly/EAP
> -----------------------------
>
> Key: ISPN-7534
> URL: https://issues.jboss.org/browse/ISPN-7534
> Project: Infinispan
> Issue Type: Feature Request
> Components: Integration
> Reporter: Sebastian Łaskawiec
> Assignee: Sebastian Łaskawiec
> Priority: Critical
>
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 9 months
[JBoss JIRA] (ISPN-7534) Support JCache on Wildfly/EAP
by Sebastian Łaskawiec (JIRA)
[ https://issues.jboss.org/browse/ISPN-7534?page=com.atlassian.jira.plugin.... ]
Sebastian Łaskawiec commented on ISPN-7534:
-------------------------------------------
Adam Bien created a bridge between JEE8 and JCache: https://github.com/Adopt-a-JSR/jcache-javaee
A proposed [spec xml|https://github.com/Adopt-a-JSR/jcache-javaee/blob/master/jcache-javae...] looks very interesting:
{code}
<caches>
<caching-provider>org.jsr107.ri.spi.RICachingProvider</caching-provider>
<cache name="it" key="java.lang.String" value="java.lang.String">
<configuration>
<property name="store.by.value" value="true"/>
<property name="management.enabled" value="false"/>
<property name="statistics.enabled" value="true"/>
<property name="vendor.specific" value="unicorn"/>
</configuration>
</cache>
<cache name="hack3rz" value="java.lang.String">
<configuration>
<property name="store.by.value" value="false"/>
<property name="management.enabled" value="true"/>
<property name="statistics.enabled" value="false"/>
<property name="java" value="duke"/>
</configuration>
</cache>
</caches>
{code}
> Support JCache on Wildfly/EAP
> -----------------------------
>
> Key: ISPN-7534
> URL: https://issues.jboss.org/browse/ISPN-7534
> Project: Infinispan
> Issue Type: Feature Request
> Components: Integration
> Reporter: Sebastian Łaskawiec
> Assignee: Sebastian Łaskawiec
> Priority: Critical
>
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 9 months