[
https://issues.apache.org/jira/browse/JCS-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508031#comment-13508031
]
Jean-Marc Spaggiari commented on JCS-100:
-----------------------------------------
I got the issue again today.
This time, I was able to capture some other logs before the dispose goes in
close loop.
Can this be because the IndexedDiskCache failed to write one key that the
cacheEventQueue is never cleared?
2012-12-01 10:56:53,588 [CacheEventQueue.QProcessor-robotCache] ERROR
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache - Region [robotCache]
Failure updating element, key: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa old: null
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:503)
at
EDU.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock$WriterLock.acquire(WriterPreferenceReadWriteLock.java:240)
at
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.doUpdate(IndexedDiskCache.java:433)
at
org.apache.jcs.auxiliary.disk.AbstractDiskCache$MyCacheListener.handlePut(AbstractDiskCache.java:603)
at
org.apache.jcs.engine.CacheEventQueue$PutEvent.doRun(CacheEventQueue.java:688)
at
org.apache.jcs.engine.CacheEventQueue$AbstractCacheEvent.run(CacheEventQueue.java:607)
at
org.apache.jcs.engine.CacheEventQueue$QProcessor.run(CacheEventQueue.java:575)
2012-12-01 10:56:53,867 [IndexedDiskCache-OptimizationThread] INFO
org.apache.jcs.auxiliary.disk.indexed.IndexedDisk - Trucating file
[C:\workspace\bbbbbbbbbb\robotCache\robotCache.data] to 367498133
> JCS never going out of the dispose methode
> ------------------------------------------
>
> Key: JCS-100
> URL: https://issues.apache.org/jira/browse/JCS-100
> Project: Commons JCS
> Issue Type: Bug
> Components: Composite Cache
> Affects Versions: jcs-1.3
> Environment: Windows
> Reporter: Jean-Marc Spaggiari
>
> I have an application using many threads all calling JCS. When I close the
> application, the cache is usually working fine, but sometime, it stays
> stucked on the dispose methode.
> The cacheEventQueue never going empty. Then it's looping on while ( keepGoing
> ) and never ending. I have to kill the application to exit.
> It's difficult to reproduce. There is no fixed pattern so far.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira