[infinispan-issues] [JBoss JIRA] (ISPN-2729) [FineGrainedAtomicMap] Class Cast Exception in Clustered + Repeatable Read + Write Skew

Pedro Ruivo (JIRA) jira-events at lists.jboss.org
Mon Jan 28 13:19:47 EST 2013


    [ https://issues.jboss.org/browse/ISPN-2729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750852#comment-12750852 ] 

Pedro Ruivo commented on ISPN-2729:
-----------------------------------

Hi Galder,

I only extended the tests ClusteredAPITest and FineGrainedAtomicMapAPITest and I changed the configuration to Repeatable Read + Write Skew.

If this combination is not supported, an exception should be thrown (in my opinion).

The use case we have is Hibernate OGM + Infinispan. In more detail, a java application developed on top of Hibernate OGM. Hibernate OGM is configured to persist the java objects in Infinispan. Sanne worked in this with Sérgio, so he may have more details.
                
> [FineGrainedAtomicMap] Class Cast Exception in Clustered + Repeatable Read + Write Skew
> ---------------------------------------------------------------------------------------
>
>                 Key: ISPN-2729
>                 URL: https://issues.jboss.org/browse/ISPN-2729
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core API, Fine-grained API, Locking and Concurrency
>         Environment: Mac OSx 10.5, Java 1.6 sun-jdk, maven 3.0.4
>            Reporter: Pedro Ruivo
>            Assignee: Galder Zamarreño
>              Labels: atomic_map, clustered, write-skew
>             Fix For: 5.2.0.Final
>
>
> Test case available in here [1]
> When a transaction commits, the write skew check performs the validation by casting the cache entry to a ClusteredRepeatableReadEntry. However, the entry is a DeltaAwareCacheEntry.
> This happens when you have operations over a map inside a transaction.
> The tests failing are: 
> WriteSkewFineGrainedAtomicMapAPITest.testSizeOnCache()
> WriteSkewFineGrainedAtomicMapAPITest.testCreateMapInTx()
> [1]https://github.com/pruivo/infinispan/commits/t_atomic_map_issue

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the infinispan-issues mailing list