Return-Path: Delivered-To: apmail-jakarta-jcs-dev-archive@www.apache.org Received: (qmail 69190 invoked from network); 29 Aug 2008 17:23:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Aug 2008 17:23:35 -0000 Received: (qmail 86758 invoked by uid 500); 29 Aug 2008 17:23:33 -0000 Delivered-To: apmail-jakarta-jcs-dev-archive@jakarta.apache.org Received: (qmail 86674 invoked by uid 500); 29 Aug 2008 17:23:33 -0000 Mailing-List: contact jcs-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JCS Developers List" Delivered-To: mailing list jcs-dev@jakarta.apache.org Received: (qmail 86659 invoked by uid 99); 29 Aug 2008 17:23:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Aug 2008 10:23:33 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Aug 2008 17:22:44 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7B346234C1D8 for ; Fri, 29 Aug 2008 10:22:44 -0700 (PDT) Message-ID: <289302730.1220030564503.JavaMail.jira@brutus> Date: Fri, 29 Aug 2008 10:22:44 -0700 (PDT) From: "Aaron Smuts (JIRA)" To: jcs-dev@jakarta.apache.org Subject: [jira] Closed: (JCS-32) Shutdown hook does not actually save keys to disk In-Reply-To: <3462371.1194927891094.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCS-32?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aaron Smuts closed JCS-32. -------------------------- Resolution: Fixed Fix Version/s: jcs-1.4-dev I moved the shutdown hook to the composite cache manager. > Shutdown hook does not actually save keys to disk > ------------------------------------------------- > > Key: JCS-32 > URL: https://issues.apache.org/jira/browse/JCS-32 > Project: JCS > Issue Type: Bug > Components: Indexed Disk Cache > Affects Versions: jcs-1.3 > Reporter: Andy > Assignee: Aaron Smuts > Priority: Minor > Fix For: jcs-1.4-dev > > > IndexedDiskCache add a Runtime's shutdown hook to dispose itself. However, this behaves differently from calling CompositeCacheManager.shutdown(). The former fails to save the keys into the disk while the latter can do so. Below is the run log from IndexedDiskCache.Shutdown running during JVM shutdown: (index and data file is empty) > [2007-11-13 11:44:36,221] [WARN ] [IndexedDiskCache] Region [scxmlcontext] Disk cache not shutdown properly, shutting down now. > [2007-11-13 11:44:36,221] [INFO ] [CompositeCache] In DISPOSE, [scxmlcontext] fromRemote [false] > Region Name = scxmlcontext > HitCountRam = 0 > HitCountAux = 0 > ---------------------------LRU Memory Cache > List Size = 2 > Map Size = 2 > Put Count = 2 > Hit Count = 0 > Miss Count = 0 > ---------------------------Indexed Disk Cache > Is Alive = true > Key Map Size = 0 > Data File Length = 0 > Hit Count = 0 > Bytes Free = 0 > Optimize Operation Count = 0 > Times Optimized = 0 > Recycle Count = 0 > Recycle Bin Size = 0 > Startup Size = 0 > Purgatory Hits = 0 > Purgatory Size = 0 > Working = true > Alive = false > Empty = true > Size = 0 > [2007-11-13 11:44:36,221] [DEBUG] [IndexedDiskCache] Region [scxmlcontext] Saving keys to: scxmlcontext, key count: 0 > [2007-11-13 11:44:36,237] [INFO ] [CompositeCache] In DISPOSE, [scxmlcontext] SKIPPING auxiliary [org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache@197bb7] fromRemote [false] > [2007-11-13 11:44:36,237] [DEBUG] [IndexedDisk] Resetting Indexed File [D:\gila\scxmlcontext.key] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: jcs-dev-help@jakarta.apache.org