jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Smuts <aasm...@wisc.edu>
Subject RE: Bug in Cache Element Removal when its expired
Date Wed, 14 Apr 2004 18:06:34 GMT
Hi Travis,

Can you send me your updates to the remote cache, indicating what's
changed.  

It's very hard to tell what you've done just by going through the code.
I'm afraid that I will miss a change and spend hours hunting down
differences.

Thanks,

Aaron

> -----Original Message-----
> From: Travis Savo [mailto:tsavo@IFILM.com]
> Sent: Tuesday, April 06, 2004 1:26 PM
> To: 'Turbine JCS Users List'
> Subject: RE: Bug in Cache Element Removal when its expired
> 
> Absolutely correct.
> 
> It's fixed in my latest build, and will go in with the rest of my
updates
> to
> CompositeCache when I get commit access.
> 
> Even more reinforcement of my prior wish list for tests for element
> expiration and idling.
> 
> -Travis Savo
> 
> -----Original Message-----
> From: ankur.kumar@axa.com.au [mailto:ankur.kumar@axa.com.au]
> Sent: Monday, April 05, 2004 11:14 PM
> To: Turbine JCS Users List
> Subject: Bug in Cache Element Removal when its expired
> 
> 
> When Cache Element is expired in Memory, it should be removed from Map
> object, which contains all cache elements.
> But it doesn't happen. and I found the cause of it. Here is the code
in
> CompositeCache which tries to remove cache item if
> it is expired:
> 
>     protected ICacheElement get( Serializable key, boolean localOnly )
>     {
> .............................................
>                 if ( isExpired( element ) )
>                 {
>                     if ( log.isDebugEnabled() )
>                     {
>                         log.debug( cacheName +
>                                    " - Memory cache hit, but element
> expired" );
>                     }
> 
>                     missCountExpired++;
> 
>                     remove( element );
> 
>                     element = null;
>                 }
>                 else
>                 {
>         .......................................
> }
> 
> remove(element) doens't work as here key needs to be passed not the
entire
> element.
> 
> Can anybody fix it and release it along with disk caching fixes?
> 
> 
> 
> 
> 
>
************************************************************************
**
> **
> *****
> Important Note
> This email (including any attachments) contains information which is
> confidential and may be subject to legal privilege.  If you are not
> the intended recipient you must not use, distribute or copy this
> email.  If you have received this email in error please notify the
> sender immediately and delete this email. Any views expressed in this
> email are not necessarily the views of AXA.   Thank you.
>
************************************************************************
**
> **
> *****
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-jcs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-jcs-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org


Mime
View raw message