I vaguely recall that the problem was in
org.apache.jcs.auxiliary.disk:dispose(). 
The alive flag is set to false before calling the actual dispose which lead
to an early return. In the mailing list archive somebody had submitted a
patch for this a while ago for review, I guess it got lost. 
Also I remember a timing problem with the event queue. In case of many
elements left in the queue the cache might shut down to soon and the last
elements might not have been written before the destroy. The patch included
a simple delay as a hotfix.

Best, 
Michal 

-----Ursprungliche Nachricht-----
Von: Jim Arnott [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 13. November 2003 17:38
An: [EMAIL PROTECTED]
Betreff: RE: [indexeddiskcache] key file not written



I could not find the patch that was mentioned in March.

thanks,
-jim

> 
> There must be a bug in save.  I'll take a look.  If there was a patch,
> please send it to me.  
> 
> Aaron
> 
> > -----Original Message-----
> > From: Jim Arnott [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, November 13, 2003 10:20 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [indexeddiskcache] key file not written
> > 
> > 
> > When I save with JCS.save() I see no data in my key file but have all
> my
> > entries
> > in the data file. When I restart it does not reload the cache. Same
> > problem as
> > described below from March of 2003.
> > 
> > -jim
> > 
> > 
> > >
> > > A proper shutdown is required.  While running, the indexeddiskcache
> > > store the keys in memory.  This is why it is far faster than any
> other
> > > disk system.  The keys are so small it does not take up much memory.
> > >
> > > This is when defragmentation occurs also.  I was working on
> on-the-fly
> > > defragmentation, but it is not done.
> > >
> > > Aaron
> > >
> > > > -----Original Message-----
> > > > From: Jim Arnott [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, November 13, 2003 9:48 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: RE: [indexeddiskcache] key file not written
> > > >
> > > >
> > > > Anyone have a fix for this? I see no patch.
> > > >
> > > > thanks a ton,
> > > > -jim
> > > >
> > > > >>
> > > > >> Hi!
> > > > >>
> > > > >> I am playing around a bit with jcs - especially the indexed
> disk
> > > cache
> > > > - and
> > > > wonder
> > > > >> why the cache does not write the key file properly such that
> the
> > > tool
> > > > can
> > > > re-read
> > > > >> the cache on the next startup. I found a hint concerning a bug
> in
> > > > AbstractDiskCache
> > > > >> in the mailinglist and was wondering whether this has been
> fixed
> > > since
> > > > then.
> > > > >>
> > > > >> With regards,
> > > > >>   Christian Kreutzfeldt
> > > >
> > > > >
> > > > > I submitted today a patch to the turbine-jcs-dev list.
> > > > >
> > > > > Alan
> > > >
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail: turbine-jcs-user-
> > [EMAIL PROTECTED]
> > >
> > 
> >              Visit our Internet site at http://www.reuters.com
> > 
> > 
> > Any views expressed in this message are those of the individual
> > sender, except where the sender specifically states them to be
> > the views of Reuters Ltd.
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

             Visit our Internet site at http://www.reuters.com


Any views expressed in this message are those of the individual 
sender, except where the sender specifically states them to be 
the views of Reuters Ltd.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to