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

Sanne Grinovero (JIRA) jira-events at lists.jboss.org
Sun Oct 3 08:17:39 EDT 2010


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.2.0.ALPHA2, 4.1.0.Final, 4.0.0.Final
            Reporter: Sanne Grinovero
            Assignee: Mircea Markus
             Fix For: 4.2.0.BETA1, 4.2.0.Final, 5.0.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