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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to