Return-Path: Delivered-To: apmail-jakarta-turbine-jcs-user-archive@www.apache.org Received: (qmail 22212 invoked from network); 6 Apr 2004 18:35:44 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 6 Apr 2004 18:35:44 -0000 Received: (qmail 30245 invoked by uid 500); 6 Apr 2004 18:35:34 -0000 Delivered-To: apmail-jakarta-turbine-jcs-user-archive@jakarta.apache.org Received: (qmail 30152 invoked by uid 500); 6 Apr 2004 18:35:33 -0000 Mailing-List: contact turbine-jcs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Turbine JCS Users List" Reply-To: "Turbine JCS Users List" Delivered-To: mailing list turbine-jcs-user@jakarta.apache.org Received: (qmail 30131 invoked from network); 6 Apr 2004 18:35:33 -0000 Received: from unknown (HELO exchange.ifilm) (63.204.234.22) by daedalus.apache.org with SMTP; 6 Apr 2004 18:35:33 -0000 Received: by exchange.ifilm.com with Internet Mail Service (5.5.2653.19) id <2LD6L2Y5>; Tue, 6 Apr 2004 11:38:37 -0700 Message-ID: From: Travis Savo To: 'Turbine JCS Users List' Subject: RE: Bug in Cache Element Removal when its expired Date: Tue, 6 Apr 2004 11:38:36 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N For now it's up at http://www.sindome.org/JCS/JCS.zip This includes the expiration removal patch, the clean shutdown patch, and the LTCP flush buffer patch, as well as the rest of my changes. I give fair warning that I still have not had time to clean this up, so please forgive any extraneous configuration files or bash scripts that don't suit your needs. I will fix this soon. -Travis Savo -----Original Message----- From: Nguyen, Thod [mailto:TNguyen@corp.untd.com] Sent: Tuesday, April 06, 2004 11:25 AM To: 'Turbine JCS Users List' Subject: RE: Bug in Cache Element Removal when its expired where can we get the latest build for now.... -----Original Message----- From: Travis Savo [mailto:tsavo@IFILM.com] Sent: Tuesday, April 06, 2004 11:26 AM 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 --------------------------------------------------------------------- To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org