Hello Aaron,

Thanks for your kind consideration.

I tested

http://svn.apache.org/viewvc/jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/indexed/IndexedDiskCacheNoMemoryUnitTest.java

with MaxPurgatorySize set 1950 
jcs.auxiliary.indexedDiskCache.attributes.MaxPurgatorySize=1950
and got FAIL result.

If I set MaxPurgatorySize over 2000, Than I get PASS always. 


I don't know it is JCS feature or a Bug.

Please refer to the attached Unit Test Result and jcs.log 


Thanks,

Youngho

----- Original Message ----- 
From: "Aaron Smuts" <[EMAIL PROTECTED]>
To: "JCS Users List" <jcs-users@jakarta.apache.org>
Sent: Tuesday, November 11, 2008 10:04 AM
Subject: Re: IndexedDiskCache insert, remove and reinsert question


> Send the contents of the getStats() call.  Are there any errors in the logs?
> 
> Aaron
> 
> 
> --- On Fri, 11/7/08, Al Forbes <[EMAIL PROTECTED]> wrote:
> 
>> From: Al Forbes <[EMAIL PROTECTED]>
>> Subject: Re: IndexedDiskCache insert, remove and reinsert question
>> To: "JCS Users List" <jcs-users@jakarta.apache.org>
>> Date: Friday, November 7, 2008, 3:34 AM
>> Hi Youngho,
>> 
>> I do not have time to look at this in detail, but there are
>> many test cases
>> in the unit tests. If you have not look there, then
>> tt's probably a good
>> idea to look at those first.
>> 
>> http://svn.apache.org/viewvc/jakarta/jcs/trunk/src/test/
>> 
>> Regards
>> Al
>> 
>> 2008/11/6 Youngho Cho <[EMAIL PROTECTED]>
>> 
>> > Hello,
>> >
>> > I tested some objects put into IndexedDiskCache and
>> remove and reinsert
>> > test like following.
>> > But I can not pass the test.
>> >
>> > Is there something wrong in cache.ccf file ?
>> > How can I pass the test ?
>> >
>> >
>> >
>> > Thanks,
>> >
>> > Youngho
>> >
>> >
>> >
>> > 1. test cache.ccf
>> >
>> > # DEFAULT CACHE REGION
>> > jcs.default=DC
>> >
>> jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
>> > jcs.default.cacheattributes.MaxObjects=0
>> >
>> >
>> jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
>> >
>> jcs.default.cacheattributes.DiskUsagePatternName=UPDATE
>> >
>> jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
>> > jcs.default.elementattributes.IsEternal=false
>> >
>> >
>> > # SYSTEM GROUP ID CACHE
>> > jcs.system.groupIdCache=DC
>> >
>> >
>> jcs.system.groupIdCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
>> > jcs.system.groupIdCache.cacheattributes.MaxObjects=0
>> >
>> >
>> jcs.system.groupIdCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
>> >
>> >
>> > # AVAILABLE AUXILIARY CACHES
>> >
>> >
>> jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
>> >
>> >
>> jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
>> > jcs.auxiliary.DC.attributes.DiskPath=d:/tmp
>> > jcs.auxiliary.DC.attributes.maxKeySize=1000000
>> > jcs.auxiliary.DC.attributes.MaxPurgatorySize=100
>> > jcs.auxiliary.DC.attributes.OptimizeOnShutdown=false
>> >
>> > # PRE-DEFINED CACHE REGIONS
>> > jcs.region.testCache1=DC
>> >
>> >
>> jcs.region.testCache1.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
>> > jcs.region.testCache1.cacheattributes.MaxObjects=0
>> >
>> >
>> jcs.region.testCache1.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
>> >
>> >
>> >
>> jcs.region.testCache1.elementattributes=org.apache.jcs.engine.ElementAttributes
>> >
>> jcs.region.testCache1.elementattributes.IsEternal=false
>> >
>> jcs.region.testCache1.elementattributes.MaxLifeSeconds=0
>> > jcs.region.testCache1.elementattributes.IsSpool=true
>> > jcs.region.testCache1.elementattributes.IsLateral=true
>> > jcs.region.testCache1.elementattributes.IsRemote=true
>> >
>> >
>> >
>> > 2. test class
>> >
>> > //
>> > // JCSTest .java
>> > //
>> >
>> > import java.io.File;
>> >
>> > import junit.framework.TestCase;
>> >
>> > import org.apache.jcs.JCS;
>> > import org.apache.jcs.access.exception.CacheException;
>> > import org.apache.jcs.engine.CompositeCacheAttributes;
>> > import
>> org.apache.jcs.engine.behavior.ICompositeCacheAttributes;
>> > import org.apache.jcs.utils.struct.LRUMap;
>> >
>> > public class JCSTest extends TestCase
>> > {
>> >
>> >    protected static int MAX_NUM = 100000;
>> >
>> >    protected JCS jcs = null;
>> >
>> >    protected void setUp() throws Exception
>> >    {
>> >        File file = new File("d:/tmp");
>> >        if(file.exists())
>> >        {
>> >            File[] files = file.listFiles();
>> >            for(int i=0; i < files.length; i++)
>> >            {
>> >                files[i].delete();
>> >            }
>> >        }
>> >        JCS.setConfigFilename( "/TestJCS.ccf"
>> );
>> >        jcs = JCS.getInstance("testCache1");
>> >    }
>> >
>> >
>> >    protected void tearDown()
>> >        throws Exception
>> >    {
>> >        jcs.dispose();
>> >    }
>> >
>> >    protected void insert(int key) throws
>> CacheException
>> >    {
>> >        Object obj = getCachedObject(key);
>> >        jcs.put(new Integer(key), obj);
>> >    }
>> >
>> >    protected void insertMany(int maxNum) throws
>> CacheException
>> >    {
>> >        for (int i = 0; i < maxNum; i++)
>> >        {
>> >            insert(i);
>> >            if ((i % 20000) == 0)
>> >            {
>> >                try
>> >                {
>> >                    Thread.sleep(20000);
>> >                }
>> >                catch(Exception e)
>> >                {
>> >                    //
>> >                }
>> >            }
>> >        }
>> >    }
>> >
>> >    protected Object get(int key)
>> >    {
>> >        return jcs.get(new Integer(key));
>> >    }
>> >
>> >    protected void getMany(int maxNum)
>> >    {
>> >        for (int i = 0; i < maxNum; i++)
>> >        {
>> >           
>> assertNotNull(getCachedObject(i).toString(), get(i));
>> >        }
>> >    }
>> >
>> >    protected void testMany(int maxNum) throws
>> Exception
>> >    {
>> >        for (int i = 0; i < maxNum; i++)
>> >        {
>> >            final MockCache obj = (MockCache)get(i);
>> >           
>> assertNotNull(getCachedObject(i).toString(), obj);
>> >            assertEquals(getCachedObject(i).getValue(),
>> obj.getValue());
>> >            // remove
>> >            jcs.remove(new Integer(i));
>> >            assertNull("[" + i  +"]
>> should be removed" , get(i));
>> >
>> >            // reinsert again
>> >            insert(i);
>> >
>> >            final MockCache obj1 = (MockCache)get(i);
>> >            // retest
>> >            assertEquals(getCachedObject(i).getValue(),
>> obj.getValue(),
>> > obj1.getValue());
>> >        }
>> >    }
>> >
>> >    protected void printStats()
>> >    {
>> >        System.out.println(jcs.getStats());
>> >    }
>> >
>> >    public void testJCS() throws Exception
>> >    {
>> >            long start = System.currentTimeMillis();
>> >            insertMany(MAX_NUM);
>> >            System.out.println(" ");
>> >            System.out.println("[DONE] : insert
>> takes " +
>> > (System.currentTimeMillis() - start ) + "msec
>> ");
>> >
>> >            start = System.currentTimeMillis();
>> >            getMany(MAX_NUM);
>> >            System.out.println(" ");
>> >            System.out.println("[DONE] : get takes
>> " +
>> > (System.currentTimeMillis() - start ) + "msec
>> ");
>> >
>> >            start = System.currentTimeMillis();
>> >            testMany(MAX_NUM);
>> >            System.out.println(" ");
>> >            System.out.println("[DONE] : test
>> takes " +
>> > (System.currentTimeMillis() - start) + "msec
>> ");
>> >
>> >            printStats();
>> >    }
>> >
>> >    protected static MockCache getCachedObject(int i)
>> >    {
>> >        return new MockCache(Integer.toString(i),
>> >                "some string [" +
>> Integer.toString(i) + "]");
>> >    }
>> > }
>> >
>> > //
>> > // MockCache.java
>> > //
>> > import java.io.Serializable;
>> >
>> > public class MockCache implements Serializable
>> > {
>> >
>> >    private String key = null;
>> >    private String value = null;
>> >
>> >    /**
>> >     *
>> >     */
>> >    public MockCache()
>> >    {
>> >    }
>> >
>> >    /**
>> >     *
>> >     */
>> >    public MockCache(String key, String value)
>> >    {
>> >        this.key = key;
>> >        this.value = value;
>> >    }
>> >
>> >    public String getValue()
>> >    {
>> >        return this.value;
>> >    }
>> >
>> >    public String toString()
>> >    {
>> >        return "{[" + this.key + "]
>> " + this.value + "}";
>> >    }
>> > }
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
2008-11-13 11:48:48,109 INFO [CompositeCacheManager] - <Instance is null, 
returning unconfigured instance>
2008-11-13 11:48:48,109 INFO [CompositeCacheManager] - <Creating cache manager 
from config file: /TestDiskCacheNoMemory.ccf>
2008-11-13 11:48:48,140 INFO [ThreadPoolManager] - <thread_pool.default 
PoolConfiguration = useBoundary = [true] boundarySize = [2000] maximumPoolSize 
= [150] minimumPoolSize = [4] keepAliveTime = [350000] whenBlockedPolicy = 
[RUN] startUpSize = [4]>
2008-11-13 11:48:48,140 INFO [CompositeCacheConfigurator] - <Setting default 
auxiliaries to indexedDiskCache>
2008-11-13 11:48:48,156 INFO [CompositeCacheConfigurator] - <setting 
defaultCompositeCacheAttributes to [ useLateral = true, useRemote = true, 
useDisk = true, maxObjs = 0, maxSpoolPerRun = -1, diskUsagePattern = 0, 
spoolChunkSize = 2 ]>
2008-11-13 11:48:48,156 INFO [CompositeCacheConfigurator] - <No special 
ElementAttribute class defined for key [jcs.default.elementattributes], using 
default class.>
2008-11-13 11:48:48,156 INFO [CompositeCacheConfigurator] - <setting 
defaultElementAttributes to [ IS_LATERAL = true, IS_SPOOL = true, IS_REMOTE = 
true, IS_ETERNAL = true, MaxLifeSeconds = -1, IdleTime = -1, CreateTime = 
1226544528156, LastAccessTime = 1226544528156, getTimeToLiveSeconds() = -1, 
createTime = 1226544528156 ]>
2008-11-13 11:48:48,156 INFO [CompositeCacheConfigurator] - <No special 
ElementAttribute class defined for key 
[jcs.system.groupIdCache.elementattributes], using default class.>
2008-11-13 11:48:48,203 INFO [AbstractDoulbeLinkedListMemoryCache] - 
<initialized MemoryCache for groupIdCache>
2008-11-13 11:48:48,203 INFO [CompositeCache] - <Constructed cache with name 
[groupIdCache] and cache attributes [ useLateral = true, useRemote = true, 
useDisk = true, maxObjs = 0, maxSpoolPerRun = -1, diskUsagePattern = 0, 
spoolChunkSize = 2 ]>
2008-11-13 11:48:48,234 INFO [AuxiliaryCacheConfigurator] - <No cache event 
logger defined for auxiliary [jcs.auxiliary.indexedDiskCache]>
2008-11-13 11:48:48,234 INFO [AuxiliaryCacheConfigurator] - <Using standard 
serializer [EMAIL PROTECTED] for auxiliary [jcs.auxiliary.indexedDiskCache]>
2008-11-13 11:48:48,484 WARN [CacheEventQueueFactory] - <Could not instantiate 
custom event queue [null].  Will use standard single threaded queue.>
2008-11-13 11:48:48,500 INFO [IndexedDiskCache] - <Region [groupIdCache] Cache 
file root directory: target/test-sandbox/indexed-disk-cache-nomemory>
2008-11-13 11:48:48,500 INFO [IndexedDiskCache] - <Region [groupIdCache] Set 
maxKeySize to: '5000'>
2008-11-13 11:48:48,515 INFO [IndexedDiskCache] - <Region [groupIdCache] 
Indexed Disk Cache is alive.>
2008-11-13 11:48:48,515 INFO [CompositeCacheConfigurator] - <No special 
ElementAttribute class defined for key 
[jcs.region.indexedRegion4.elementattributes], using default class.>
2008-11-13 11:48:48,515 INFO [AbstractDoulbeLinkedListMemoryCache] - 
<initialized MemoryCache for indexedRegion4>
2008-11-13 11:48:48,515 INFO [CompositeCache] - <Constructed cache with name 
[indexedRegion4] and cache attributes [ useLateral = true, useRemote = true, 
useDisk = true, maxObjs = 0, maxSpoolPerRun = -1, diskUsagePattern = 0, 
spoolChunkSize = 2 ]>
2008-11-13 11:48:48,515 INFO [AuxiliaryCacheConfigurator] - <No cache event 
logger defined for auxiliary [jcs.auxiliary.indexedDiskCache2]>
2008-11-13 11:48:48,515 INFO [AuxiliaryCacheConfigurator] - <Using standard 
serializer [EMAIL PROTECTED] for auxiliary [jcs.auxiliary.indexedDiskCache2]>
2008-11-13 11:48:48,515 WARN [CacheEventQueueFactory] - <Could not instantiate 
custom event queue [null].  Will use standard single threaded queue.>
2008-11-13 11:48:48,515 INFO [IndexedDiskCache] - <Region [indexedRegion4] 
Cache file root directory: target/test-sandbox/indexed-disk-cache2-nomemory>
2008-11-13 11:48:48,515 INFO [IndexedDiskCache] - <Region [indexedRegion4] Set 
maxKeySize to: '5000'>
2008-11-13 11:48:48,515 INFO [IndexedDiskCache] - <Region [indexedRegion4] 
Indexed Disk Cache is alive.>
2008-11-13 11:48:48,515 INFO [CompositeCacheConfigurator] - <No special 
ElementAttribute class defined for key 
[jcs.region.indexedRegion3.elementattributes], using default class.>
2008-11-13 11:48:48,515 INFO [AbstractDoulbeLinkedListMemoryCache] - 
<initialized MemoryCache for indexedRegion3>
2008-11-13 11:48:48,515 INFO [CompositeCache] - <Constructed cache with name 
[indexedRegion3] and cache attributes [ useLateral = true, useRemote = true, 
useDisk = true, maxObjs = 0, maxSpoolPerRun = -1, diskUsagePattern = 0, 
spoolChunkSize = 2 ]>
2008-11-13 11:48:48,515 INFO [AuxiliaryCacheConfigurator] - <No cache event 
logger defined for auxiliary [jcs.auxiliary.indexedDiskCache]>
2008-11-13 11:48:48,515 INFO [AuxiliaryCacheConfigurator] - <Using standard 
serializer [EMAIL PROTECTED] for auxiliary [jcs.auxiliary.indexedDiskCache]>
2008-11-13 11:48:48,515 WARN [CacheEventQueueFactory] - <Could not instantiate 
custom event queue [null].  Will use standard single threaded queue.>
2008-11-13 11:48:48,515 INFO [IndexedDiskCache] - <Region [indexedRegion3] 
Cache file root directory: target/test-sandbox/indexed-disk-cache-nomemory>
2008-11-13 11:48:48,515 INFO [IndexedDiskCache] - <Region [indexedRegion3] Set 
maxKeySize to: '5000'>
2008-11-13 11:48:48,750 INFO [IndexedDiskCache] - <Region [indexedRegion3] 
Loaded keys from [indexedRegion3], key count: 5000; up to 5000 will be 
available.>
2008-11-13 11:48:48,765 INFO [IndexedDiskCache] - <Region [indexedRegion3] 
Finished inital consistency check, isOk = true in 15ms.>
2008-11-13 11:48:48,765 INFO [IndexedDiskCache] - <Region [indexedRegion3] 
Indexed Disk Cache is alive.>
2008-11-13 11:48:48,765 INFO [CompositeCacheConfigurator] - <No special 
ElementAttribute class defined for key 
[jcs.region.indexedRegion2.elementattributes], using default class.>
2008-11-13 11:48:48,765 INFO [AbstractDoulbeLinkedListMemoryCache] - 
<initialized MemoryCache for indexedRegion2>
2008-11-13 11:48:48,765 INFO [CompositeCache] - <Constructed cache with name 
[indexedRegion2] and cache attributes [ useLateral = true, useRemote = true, 
useDisk = true, maxObjs = 0, maxSpoolPerRun = -1, diskUsagePattern = 0, 
spoolChunkSize = 2 ]>
2008-11-13 11:48:48,781 INFO [AuxiliaryCacheConfigurator] - <No cache event 
logger defined for auxiliary [jcs.auxiliary.indexedDiskCache]>
2008-11-13 11:48:48,781 INFO [AuxiliaryCacheConfigurator] - <Using standard 
serializer [EMAIL PROTECTED] for auxiliary [jcs.auxiliary.indexedDiskCache]>
2008-11-13 11:48:48,781 WARN [CacheEventQueueFactory] - <Could not instantiate 
custom event queue [null].  Will use standard single threaded queue.>
2008-11-13 11:48:48,781 INFO [IndexedDiskCache] - <Region [indexedRegion2] 
Cache file root directory: target/test-sandbox/indexed-disk-cache-nomemory>
2008-11-13 11:48:48,781 INFO [IndexedDiskCache] - <Region [indexedRegion2] Set 
maxKeySize to: '5000'>
2008-11-13 11:48:48,921 INFO [IndexedDiskCache] - <Region [indexedRegion2] 
Loaded keys from [indexedRegion2], key count: 5000; up to 5000 will be 
available.>
2008-11-13 11:48:48,953 INFO [IndexedDiskCache] - <Region [indexedRegion2] 
Finished inital consistency check, isOk = true in 16ms.>
2008-11-13 11:48:48,953 INFO [IndexedDiskCache] - <Region [indexedRegion2] 
Indexed Disk Cache is alive.>
2008-11-13 11:48:48,953 INFO [CompositeCacheConfigurator] - <No special 
ElementAttribute class defined for key 
[jcs.region.indexedRegion1.elementattributes], using default class.>
2008-11-13 11:48:48,953 INFO [AbstractDoulbeLinkedListMemoryCache] - 
<initialized MemoryCache for indexedRegion1>
2008-11-13 11:48:48,953 INFO [CompositeCache] - <Constructed cache with name 
[indexedRegion1] and cache attributes [ useLateral = true, useRemote = true, 
useDisk = true, maxObjs = 0, maxSpoolPerRun = -1, diskUsagePattern = 0, 
spoolChunkSize = 2 ]>
2008-11-13 11:48:48,953 INFO [AuxiliaryCacheConfigurator] - <No cache event 
logger defined for auxiliary [jcs.auxiliary.indexedDiskCache]>
2008-11-13 11:48:48,953 INFO [AuxiliaryCacheConfigurator] - <Using standard 
serializer [EMAIL PROTECTED] for auxiliary [jcs.auxiliary.indexedDiskCache]>
2008-11-13 11:48:48,953 WARN [CacheEventQueueFactory] - <Could not instantiate 
custom event queue [null].  Will use standard single threaded queue.>
2008-11-13 11:48:48,953 INFO [IndexedDiskCache] - <Region [indexedRegion1] 
Cache file root directory: target/test-sandbox/indexed-disk-cache-nomemory>
2008-11-13 11:48:48,953 INFO [IndexedDiskCache] - <Region [indexedRegion1] Set 
maxKeySize to: '5000'>
2008-11-13 11:48:49,031 INFO [IndexedDiskCache] - <Region [indexedRegion1] 
Loaded keys from [indexedRegion1], key count: 5000; up to 5000 will be 
available.>
2008-11-13 11:48:49,046 INFO [IndexedDiskCache] - <Region [indexedRegion1] 
Finished inital consistency check, isOk = true in 15ms.>
2008-11-13 11:48:49,046 INFO [IndexedDiskCache] - <Region [indexedRegion1] 
Indexed Disk Cache is alive.>
2008-11-13 11:48:49,062 INFO [CompositeCacheConfigurator] - <Parsed regions 
[indexedRegion4, indexedRegion3, indexedRegion2, indexedRegion1]>
2008-11-13 11:48:49,062 INFO [CompositeCacheConfigurator] - <Finished 
configuration in 922 ms.>
2008-11-13 11:48:49,062 INFO [CacheEventQueue] - <Cache event queue created: 
CacheEventQueue [listenerId=-1816151081, cacheName=indexedRegion2]>
2008-11-13 11:48:49,265 INFO [CacheEventQueue] - <Cache event queue created: 
CacheEventQueue [listenerId=-1816151081, cacheName=indexedRegion3]>
2008-11-13 11:48:49,296 INFO [CacheEventQueue] - <Cache event queue created: 
CacheEventQueue [listenerId=-1816151081, cacheName=indexedRegion1]>
2008-11-13 11:48:58,343 INFO [CompositeCacheManager] - <Shutdown hook 
activated.  Shutdown was not called.  Shutting down JCS.>
2008-11-13 11:48:58,343 INFO [CompositeCache] - <In DISPOSE, [indexedRegion4] 
fromRemote [false] 
Region Name = indexedRegion4
HitCountRam = 0
HitCountAux = 0
---------------------------Memory Cache
List Size = 0
Map Size = 0
Put Count = 0
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>
2008-11-13 11:48:58,343 INFO [CompositeCache] - <In DISPOSE, [indexedRegion4] 
auxiliary [EMAIL PROTECTED]>
2008-11-13 11:48:58,343 INFO [CompositeCache] - <In DISPOSE, [indexedRegion4] 
put 0 into auxiliary [EMAIL PROTECTED]>
2008-11-13 11:48:58,437 INFO [AbstractDiskCache] - <No longer waiting for event 
queue to finish: Cache Event Queue
Working = true
Alive = false
Empty = true
Size = 0>
2008-11-13 11:48:58,437 INFO [AbstractDiskCache] - <In dispose, destroying 
event queue.>
2008-11-13 11:48:58,437 INFO [CacheEventQueue] - <Destroy was called after 
queue was destroyed.  Doing nothing.  Stats =  Cache Event Queue
Working = true
Alive = false
Empty = true
Size = 0>
2008-11-13 11:48:58,437 INFO [IndexedDiskCache] - <Region [indexedRegion4] 
Shutdown complete.>
2008-11-13 11:48:58,437 INFO [CompositeCache] - <In DISPOSE, [indexedRegion4] 
disposing of memory cache.>
2008-11-13 11:48:58,437 INFO [AbstractMemoryCache] - <Memory Cache dispose 
called.  Shutting down shrinker thread if it is running.>
2008-11-13 11:48:58,453 INFO [CompositeCache] - <In DISPOSE, [indexedRegion3] 
fromRemote [false] 
Region Name = indexedRegion3
HitCountRam = 0
HitCountAux = 6003
---------------------------Memory Cache
List Size = 0
Map Size = 0
Put Count = 4002
Hit Count = 0
Miss Count = 8004
---------------------------Indexed Disk Cache
Is Alive = true
Key Map Size = 5000
Data File Length = 2353778
Hit Count = 6003
Bytes Free = 0
Optimize Operation Count = 0
Times Optimized = 0
Recycle Count = 2001
Recycle Bin Size = 0
Startup Size = 5000
Purgatory Hits = 0
Purgatory Size = 0
Working = true
Alive = true
Empty = true
Size = 0>
2008-11-13 11:48:58,453 INFO [CompositeCache] - <In DISPOSE, [indexedRegion3] 
auxiliary [EMAIL PROTECTED]>
2008-11-13 11:48:58,453 INFO [CompositeCache] - <In DISPOSE, [indexedRegion3] 
put 0 into auxiliary [EMAIL PROTECTED]>
2008-11-13 11:48:58,546 INFO [AbstractDiskCache] - <No longer waiting for event 
queue to finish: Cache Event Queue
Working = true
Alive = true
Empty = true
Size = 0>
2008-11-13 11:48:58,546 INFO [AbstractDiskCache] - <In dispose, destroying 
event queue.>
2008-11-13 11:48:58,546 INFO [CacheEventQueue] - <Destroying queue, stats =  
Cache Event Queue
Working = true
Alive = false
Empty = true
Size = 0>
2008-11-13 11:48:58,546 INFO [CacheEventQueue] - <Cache event queue destroyed: 
CacheEventQueue [listenerId=-1816151081, cacheName=indexedRegion3]>
2008-11-13 11:48:58,546 WARN [CacheEventQueue] - <Interrupted while waiting for 
another event to come in before we die.>
2008-11-13 11:48:58,625 INFO [IndexedDiskCache] - <Region [indexedRegion3] 
Shutdown complete.>
2008-11-13 11:48:58,625 INFO [CompositeCache] - <In DISPOSE, [indexedRegion3] 
disposing of memory cache.>
2008-11-13 11:48:58,625 INFO [AbstractMemoryCache] - <Memory Cache dispose 
called.  Shutting down shrinker thread if it is running.>
2008-11-13 11:48:58,625 INFO [CompositeCache] - <In DISPOSE, [indexedRegion2] 
fromRemote [false] 
Region Name = indexedRegion2
HitCountRam = 0
HitCountAux = 4039
---------------------------Memory Cache
List Size = 0
Map Size = 0
Put Count = 4002
Hit Count = 0
Miss Count = 6041
---------------------------Indexed Disk Cache
Is Alive = true
Key Map Size = 4991
Data File Length = 2467988
Hit Count = 4039
Bytes Free = 118404
Optimize Operation Count = 0
Times Optimized = 0
Recycle Count = 1749
Recycle Bin Size = 252
Startup Size = 5000
Purgatory Hits = 0
Purgatory Size = 0
Working = true
Alive = true
Empty = true
Size = 0>
2008-11-13 11:48:58,625 INFO [CompositeCache] - <In DISPOSE, [indexedRegion2] 
auxiliary [EMAIL PROTECTED]>
2008-11-13 11:48:58,625 INFO [CompositeCache] - <In DISPOSE, [indexedRegion2] 
put 0 into auxiliary [EMAIL PROTECTED]>
2008-11-13 11:48:58,718 INFO [AbstractDiskCache] - <No longer waiting for event 
queue to finish: Cache Event Queue
Working = true
Alive = true
Empty = true
Size = 0>
2008-11-13 11:48:58,718 INFO [AbstractDiskCache] - <In dispose, destroying 
event queue.>
2008-11-13 11:48:58,718 INFO [CacheEventQueue] - <Destroying queue, stats =  
Cache Event Queue
Working = true
Alive = false
Empty = true
Size = 0>
2008-11-13 11:48:58,718 INFO [CacheEventQueue] - <Cache event queue destroyed: 
CacheEventQueue [listenerId=-1816151081, cacheName=indexedRegion2]>
2008-11-13 11:48:58,718 WARN [CacheEventQueue] - <Interrupted while waiting for 
another event to come in before we die.>
2008-11-13 11:48:58,718 INFO [IndexedDiskCache] - <Region [indexedRegion2] 
Beginning Optimization #1>
2008-11-13 11:48:58,953 INFO [IndexedDiskCache] - <Region [indexedRegion2] 
Defragmentation took 203ms.. File Size (before=2467988) (after=2467988) 
(truncating to 2349584)>
2008-11-13 11:48:58,953 INFO [IndexedDisk] - <Trucating file 
[F:\projectSvn\jcs\target\test-sandbox\indexed-disk-cache-nomemory\indexedRegion2.data]
 to 2349584>
2008-11-13 11:48:58,953 INFO [IndexedDiskCache] - <Region [indexedRegion2] 
Finished #1 Optimization took 235ms.>
2008-11-13 11:48:59,015 INFO [IndexedDiskCache] - <Region [indexedRegion2] 
Shutdown complete.>
2008-11-13 11:48:59,015 INFO [CompositeCache] - <In DISPOSE, [indexedRegion2] 
disposing of memory cache.>
2008-11-13 11:48:59,015 INFO [AbstractMemoryCache] - <Memory Cache dispose 
called.  Shutting down shrinker thread if it is running.>
2008-11-13 11:48:59,015 INFO [CompositeCache] - <In DISPOSE, [indexedRegion1] 
fromRemote [false] 
Region Name = indexedRegion1
HitCountRam = 0
HitCountAux = 6003
---------------------------Memory Cache
List Size = 0
Map Size = 0
Put Count = 4002
Hit Count = 0
Miss Count = 8004
---------------------------Indexed Disk Cache
Is Alive = true
Key Map Size = 5000
Data File Length = 2353778
Hit Count = 6003
Bytes Free = 0
Optimize Operation Count = 0
Times Optimized = 0
Recycle Count = 2001
Recycle Bin Size = 0
Startup Size = 5000
Purgatory Hits = 0
Purgatory Size = 0
Working = true
Alive = true
Empty = true
Size = 0>
2008-11-13 11:48:59,015 INFO [CompositeCache] - <In DISPOSE, [indexedRegion1] 
auxiliary [EMAIL PROTECTED]>
2008-11-13 11:48:59,015 INFO [CompositeCache] - <In DISPOSE, [indexedRegion1] 
put 0 into auxiliary [EMAIL PROTECTED]>
2008-11-13 11:48:59,125 INFO [AbstractDiskCache] - <No longer waiting for event 
queue to finish: Cache Event Queue
Working = true
Alive = true
Empty = true
Size = 0>
2008-11-13 11:48:59,125 INFO [AbstractDiskCache] - <In dispose, destroying 
event queue.>
2008-11-13 11:48:59,125 INFO [CacheEventQueue] - <Destroying queue, stats =  
Cache Event Queue
Working = true
Alive = false
Empty = true
Size = 0>
2008-11-13 11:48:59,125 INFO [CacheEventQueue] - <Cache event queue destroyed: 
CacheEventQueue [listenerId=-1816151081, cacheName=indexedRegion1]>
2008-11-13 11:48:59,125 WARN [CacheEventQueue] - <Interrupted while waiting for 
another event to come in before we die.>
2008-11-13 11:48:59,187 INFO [IndexedDiskCache] - <Region [indexedRegion1] 
Shutdown complete.>
2008-11-13 11:48:59,187 INFO [CompositeCache] - <In DISPOSE, [indexedRegion1] 
disposing of memory cache.>
2008-11-13 11:48:59,187 INFO [AbstractMemoryCache] - <Memory Cache dispose 
called.  Shutting down shrinker thread if it is running.>
2008-11-13 11:48:59,187 INFO [CompositeCache] - <In DISPOSE, [groupIdCache] 
fromRemote [false] 
Region Name = groupIdCache
HitCountRam = 0
HitCountAux = 0
---------------------------Memory Cache
List Size = 0
Map Size = 0
Put Count = 0
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>
2008-11-13 11:48:59,187 INFO [CompositeCache] - <In DISPOSE, [groupIdCache] 
auxiliary [EMAIL PROTECTED]>
2008-11-13 11:48:59,187 INFO [CompositeCache] - <In DISPOSE, [groupIdCache] put 
0 into auxiliary [EMAIL PROTECTED]>
2008-11-13 11:48:59,281 INFO [AbstractDiskCache] - <No longer waiting for event 
queue to finish: Cache Event Queue
Working = true
Alive = false
Empty = true
Size = 0>
2008-11-13 11:48:59,281 INFO [AbstractDiskCache] - <In dispose, destroying 
event queue.>
2008-11-13 11:48:59,281 INFO [CacheEventQueue] - <Destroy was called after 
queue was destroyed.  Doing nothing.  Stats =  Cache Event Queue
Working = true
Alive = false
Empty = true
Size = 0>
2008-11-13 11:48:59,296 INFO [IndexedDiskCache] - <Region [groupIdCache] 
Shutdown complete.>
2008-11-13 11:48:59,296 INFO [CompositeCache] - <In DISPOSE, [groupIdCache] 
disposing of memory cache.>
2008-11-13 11:48:59,296 INFO [AbstractMemoryCache] - <Memory Cache dispose 
called.  Shutting down shrinker thread if it is running.>
Testsuite: 
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheNoMemoryUnitTest
Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 10.969 sec

------------- Standard Output ---------------
Region Name = indexedRegion1
HitCountRam = 0
HitCountAux = 6003
---------------------------Memory Cache
List Size = 0
Map Size = 0
Put Count = 4002
Hit Count = 0
Miss Count = 8004
---------------------------Indexed Disk Cache
Is Alive = true
Key Map Size = 5000
Data File Length = 2353778
Hit Count = 6003
Bytes Free = 0
Optimize Operation Count = 0
Times Optimized = 0
Recycle Count = 2001
Recycle Bin Size = 0
Startup Size = 5000
Purgatory Hits = 0
Purgatory Size = 0
Working = true
Alive = true
Empty = true
Size = 0
Region Name = indexedRegion3
HitCountRam = 0
HitCountAux = 6003
---------------------------Memory Cache
List Size = 0
Map Size = 0
Put Count = 4002
Hit Count = 0
Miss Count = 8004
---------------------------Indexed Disk Cache
Is Alive = true
Key Map Size = 5000
Data File Length = 2353778
Hit Count = 6003
Bytes Free = 0
Optimize Operation Count = 0
Times Optimized = 0
Recycle Count = 2001
Recycle Bin Size = 0
Startup Size = 5000
Purgatory Hits = 0
Purgatory Size = 0
Working = true
Alive = true
Empty = true
Size = 0
------------- ---------------- ---------------
Testcase: 
testIndexedDiskCache2(org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheNoMemoryUnitTest$2):
      FAILED
expected:<indexedRegion2 data 37> but was:<null>
junit.framework.ComparisonFailure: expected:<indexedRegion2 data 37> but 
was:<null>
        at 
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheNoMemoryUnitTest.runTestForRegion(IndexedDiskCacheNoMemoryUnitTest.java:189)
        at 
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheNoMemoryUnitTest$2.runTest(IndexedDiskCacheNoMemoryUnitTest.java:93)
        at junit.extensions.ActiveTestSuite$1.run(ActiveTestSuite.java:41)



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to