Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1990

Preload sets the versions to null (repeatable read + write skew)

    XMLWordPrintable

Details

    Description

      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:

       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)
      

      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

      Attachments

        Issue Links

          Activity

            People

              rh-ee-galder Galder ZamarreƱo
              pruivo@redhat.com Pedro Ruivo
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: