[infinispan-issues] [JBoss JIRA] Updated: (ISPN-687) JdbcStringBasedCacheStore fails to store value, uses INSERT statement on existing value when the existing one is expired

Mircea Markus (JIRA) jira-events at lists.jboss.org
Thu Oct 14 08:50:40 EDT 2010


     [ https://jira.jboss.org/browse/ISPN-687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mircea Markus updated ISPN-687:
-------------------------------

    Fix Version/s:     (was: 5.0.0.Final)


> JdbcStringBasedCacheStore fails to store value, uses INSERT statement on existing value when the existing one is expired
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ISPN-687
>                 URL: https://jira.jboss.org/browse/ISPN-687
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Loaders and Stores
>    Affects Versions: 4.0.0.Final, 4.1.0.Final
>            Reporter: Sanne Grinovero
>            Assignee: Mircea Markus
>             Fix For: 4.2.0.BETA1, 4.2.0.Final
>
>
> org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore.storeLockSafe(InternalCacheEntry, String)
> checks for existance of the key it wants to store by using "loadLockSafe", so to appropriately choose INSERT or UPDATE statements to perform the store operation on the database.
> The problem is that if the existing item on database is expired, "loadLockSafe" will return null, having the store function in fact choose to use INSERT instead of UPDATE, and this will fail to store the entry.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list