[infinispan-issues] [JBoss JIRA] (ISPN-1990) Preload sets the versions to null (repeatable read + write skew)

Tristan Tarrant (JIRA) jira-events at lists.jboss.org
Fri Oct 26 03:13:06 EDT 2012


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

Tristan Tarrant commented on ISPN-1990:
---------------------------------------

I have fixed Pedro's test to use the new Configuration API and remove useless code:

https://github.com/tristantarrant/infinispan/compare/ISPN-1990
                
> Preload sets the versions to null (repeatable read + write skew)
> ----------------------------------------------------------------
>
>                 Key: ISPN-1990
>                 URL: https://issues.jboss.org/browse/ISPN-1990
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Loaders and Stores
>    Affects Versions: 5.1.3.FINAL
>         Environment: Java 6 (64bits)
> Infinispan 5.2.0-SNAPSHOT
> MacOS 
>            Reporter: Pedro Ruivo
>            Assignee: Tristan Tarrant
>              Labels: preload, skew, versioning, write
>             Fix For: 5.2.0.Beta3, 5.2.0.Final
>
>
> I think I've spotted a issue when I use repeatable read with write skew check and I preload the cache.
>  
> I've made a test case to reproduce the bug. It can be found here [1]. 
> The problem is that each keys preloaded is put in the container with version = null. When I try to commit a transaction, I get this exception:
>  
> {code}
>  java.lang.IllegalStateException: Entries cannot have null versions!
>     at org.infinispan.container.entries.ClusteredRepeatableReadEntry.performWriteSkewCheck(ClusteredRepeatableReadEntry.java:44)
>     at org.infinispan.transaction.WriteSkewHelper.performWriteSkewCheckAndReturnNewVersions(WriteSkewHelper.java:81)
>     at org.infinispan.interceptors.locking.ClusteringDependentLogic$AllNodesLogic.createNewVersionsAndCheckForWriteSkews(ClusteringDependentLogic.java:133)
>     at org.infinispan.interceptors.VersionedEntryWrappingInterceptor.visitPrepareCommand(VersionedEntryWrappingInterceptor.java:64)
> {code}
>  
> I think that all info is in the test case, but if you need something let 
> me know.
>  
> Cheers,
> Pedro
> [1] 
> https://github.com/pruivo/infinispan/blob/issue_1/core/src/test/java/org/infinispan/loaders/WriteSkewCacheLoaderFunctionalTest.java

--
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