[OS-JIRA] Created: (CAY-256) InvalidateObject (also refetch) snapshot sync transient-izes object in other contexts

From: jir..bjectstyle.org
Date: Thu Dec 30 2004 - 16:26:06 EST


Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-256

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: CAY-256
    Summary: InvalidateObject (also refetch) snapshot sync transient-izes object in other contexts
       Type: Bug

     Status: Assigned
   Priority: Major

    Project: Cayenne
 Components:
             Cayenne Core Library
   Fix Fors:
             1.1
   Versions:
             1.1

   Assignee: Andrus Adamchik
   Reporter: Mike Kienenberger

    Created: Thu, 30 Dec 2004 4:24 PM
    Updated: Thu, 30 Dec 2004 4:24 PM
Environment: 1.1 RC1

Description:
Invalidating an object (also refetching since it calls invalidateObject) in one context causes the object to be processed as deleted in other contexts (marked transient, removed from data context).

In my opinion, the object should be marked hollow if committed, and refetched and snapshot changes merged (if modified). It's unclear to me what should happen if the object is already deleted, but I suspect leaving it alone is probably best.

I've modified SnapshotEvent to support an invalidated object id list, and I've modified ObjectStore and DataRowStore to use this new list and event extension.

I worry that I've overlooked something, but so far, things are working as expected.

This will probably also provide a basis for handling expired snapshot cache items when support is eventually added for them.

These changes are against 1.1RC1 since that's what my dev environment is currently using, but if they look good, I can recreate them against HEAD or 1.1 final.

---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://objectstyle.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



This archive was generated by hypermail 2.0.0 : Thu Dec 30 2004 - 16:26:10 EST