cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trevor Higgins (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-1609) Cache becomes invalid when an object with a qualifier is added or removed
Date Fri, 02 Sep 2011 15:39:09 GMT
Cache becomes invalid when an object with a qualifier is added or removed
-------------------------------------------------------------------------

                 Key: CAY-1609
                 URL: https://issues.apache.org/jira/browse/CAY-1609
             Project: Cayenne
          Issue Type: Bug
          Components: Core Library
    Affects Versions: 3.0.2
         Environment: Ubuntu 10.10 - OpenJDK 6 - Tomcat 6
            Reporter: Trevor Higgins


Using a primary key to retrieve an object via DataObjectUtils and then retrieving a List relationship
via that object results in extremely stale (read: blatantly incorrect) results when an object
which is subclassed and uses a qualifier (in my case a single column single character) is
added or destroyed unless the relationship is modified on the parent object (i.e. the one
retrieved via its PK)

In short: the relationships between two objects and the object cache become corrupt when at
least one of them uses a qualifying field unless the relationships are explicitly modified
from the retrieving side on both creation and upon deletion.

I understand that the object cache can become stale, but this is within the same context over
and over again and it does not go away, it does not fix itself over time (which would mean
a possible race condition)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message