You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-dev@jakarta.apache.org by "Aaron Smuts (JIRA)" <ji...@apache.org> on 2008/08/29 19:16:44 UTC

[jira] Commented: (JCS-32) Shutdown hook does not actually save keys to disk

    [ https://issues.apache.org/jira/browse/JCS-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627037#action_12627037 ] 

Aaron Smuts commented on JCS-32:
--------------------------------

I'm going to move 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
>
> 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