[infinispan-issues] [JBoss JIRA] (ISPN-11079) Cluster Expiration and Optimistic Transactions write skew issues

Will Burns (Jira) issues at jboss.org
Thu Dec 12 15:14:00 EST 2019


     [ https://issues.redhat.com/browse/ISPN-11079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Will Burns updated ISPN-11079:
------------------------------
    Status: Open  (was: New)


> Cluster Expiration and Optimistic Transactions write skew issues
> ----------------------------------------------------------------
>
>                 Key: ISPN-11079
>                 URL: https://issues.redhat.com/browse/ISPN-11079
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Expiration
>            Reporter: Will Burns
>            Priority: Major
>
> Optimistic write skew and clustered expiration can have some weird issues
> One such is:
> The issue is the following:
> 1. RemoveExpiredCommand reads the expired from the container with version 1 and puts in its context
> 2. PutKeyValueCommand sees nothing in container due to expired and adds a new entry with version 1 in its context
> 3. Put gets the lock and replaces the value
> 4. RemoveExpiredCommand attempts to run and because it saw the old value the lifespans still match (if different)
> 5. Then the write skew passes for the remove expired command since the value in container and its context both have version 1
> To workaround this for now we should prevent a get of an expired entry from returning early when using optimistic transactions.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list