Results 1 to 3 of 3

Thread: Evictor Recreates Servant Unnecessarily?

  1. #1
    acbell is offline Registered User
    Name: Andrew Bell
    Organization: Iowa State University
    Project: National Resources Inventory
    Join Date
    Jan 2005
    Location
    Ames, IA, USA
    Posts
    89

    Evictor Recreates Servant Unnecessarily?

    Hi,

    Just wondering if anyone has seen behavior where an evictor "evicts" an object when first saved. What I *think* is happening is that after an object has been added to the evictor, the saving thread correctly saves the object to the database, but in the process, it seems to delete the object and the recreate it from the database, or perhaps it just makes a copy. Either way, the servant found by the evictor has a different address than the one initially created.

    The evictor should have plenty of space in it, so it shouldn't need to delete/recreate.

    If you have seen anything like this, do you have any ideas on what might be going on?

    Thanks for any thoughts,

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi Andrew,

    I tried to see if I could reproduce this with the demo/Freeze/library demo (with the Ice for C++ and Java distribution) and I can't observe what you describe. Saved servants are not evicted after the save.

    They could be evicted after the save if the evictor maximum size is reached however since they become eligible to eviction after the save (see Chapter 37.5 for more details).

    Did you try to enable tracing with by setting the Freeze.Trace.Evictor property to 3? This might give you some hints on the reasons of the eviction of these objects.

    Cheers,
    Benoit.

  3. #3
    acbell is offline Registered User
    Name: Andrew Bell
    Organization: Iowa State University
    Project: National Resources Inventory
    Join Date
    Jan 2005
    Location
    Ames, IA, USA
    Posts
    89

    Can't Reproduce Either

    Benoit,

    Sorry that you spent time on this. I have also tried to reproduce this with a controlled test case, but have not yet been able to do so. This _probably_ means that there is some oversight in my code. I'll post back if I can reproduce, but I was just wondering if I was the only person who _thought_ that they saw this behavior.

    Cheers,

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 06-30-2007, 10:52 PM
  2. Replies: 2
    Last Post: 06-23-2007, 07:19 AM
  3. Trouble when using Evictor!
    By kent in forum Help Center
    Replies: 7
    Last Post: 04-12-2006, 09:14 PM
  4. Evictor question?
    By thelONE in forum Help Center
    Replies: 2
    Last Post: 10-27-2005, 07:34 AM
  5. Evictor problem
    By xdm in forum Help Center
    Replies: 11
    Last Post: 10-14-2003, 01:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •