[infinispan-issues] [JBoss JIRA] (ISPN-1993) Eviction does not work with FileCacheStore
dex chen (JIRA)
jira-events at lists.jboss.org
Wed Apr 18 11:36:18 EDT 2012
dex chen created ISPN-1993:
------------------------------
Summary: Eviction does not work with FileCacheStore
Key: ISPN-1993
URL: https://issues.jboss.org/browse/ISPN-1993
Project: Infinispan
Issue Type: Bug
Components: Loaders and Stores
Affects Versions: 5.1.3.FINAL
Environment: ISPN 5.1.3 Final, 2 node cluster with Replication, and FileCahceStore for persistence.
Eviction is configured as:
<eviction maxEntries="2" strategy="LRU"/>
<!-- time units below are millseconds -->
<expiration lifespan="-1" maxIdle="-1" wakeUpInterval="60000"/>
I have a scheduled job updating cache entries, which only occurs on Cluster Coordinator.
Reporter: dex chen
Assignee: Manik Surtani
The eviction does not work and throws IOException:
2012-04-18/00:42:35.714/MDT [Scheduled-eviction-thread-1] TRACE org.infinispan.loaders.file.FileCacheStore[294] - Found bucket file: '/usr/local/cacheData/cipher/ispn-cipherkey/666290176'
2012-04-18/00:42:35.724/MDT [Scheduled-eviction-thread-1] TRACE org.infinispan.loaders.file.FileCacheStore[294] - Found bucket file: '/usr/local/cacheData/cipher/ispn-cipherkey/673135616'
2012-04-18/00:42:35.724/MDT [Scheduled-eviction-thread-1] TRACE org.infinispan.loaders.file.FileCacheStore[294] - Found bucket file: '/usr/local/cacheData/cipher/ispn-cipherkey/673135616'
2012-04-18/00:42:35.724/MDT [Scheduled-eviction-thread-1] TRACE org.infinispan.loaders.file.FileCacheStore[294] - Found bucket file: '/usr/local/cacheData/cipher/ispn-cipherkey/673135616'
2012-04-18/00:42:35.725/MDT [Scheduled-eviction-thread-1] ERROR org.infinispan.loaders.file.FileCacheStore[310] - ISPN000062: Error while reading from file: /usr/local/cacheData/cipher/ispn-cipherkey/673135616
java.io.IOException: No such device
at sun.nio.ch.FileDispatcherImpl.force0(Native Method)
at sun.nio.ch.FileDispatcherImpl.force(FileDispatcherImpl.java:75)
at sun.nio.ch.FileChannelImpl.force(FileChannelImpl.java:363)
at org.infinispan.loaders.file.FileCacheStore$BufferedFileSync.flush(FileCacheStore.java:563)
at org.infinispan.loaders.file.FileCacheStore.loadBucket(FileCacheStore.java:300)
at org.infinispan.loaders.file.FileCacheStore.doPurge(FileCacheStore.java:251)
at org.infinispan.loaders.file.FileCacheStore.purgeInternal(FileCacheStore.java:230)
at org.infinispan.loaders.AbstractCacheStore$2.run(AbstractCacheStore.java:106)
at org.infinispan.util.concurrent.WithinThreadExecutor.execute(WithinThreadExecutor.java:41)
at org.infinispan.loaders.AbstractCacheStore.purgeExpired(AbstractCacheStore.java:103)
at org.infinispan.loaders.decorators.AbstractDelegatingStore.purgeExpired(AbstractDelegatingStore.java:88)
at org.infinispan.eviction.EvictionManagerImpl.processEviction(EvictionManagerImpl.java:118)
at org.infinispan.eviction.EvictionManagerImpl$ScheduledTask.run(EvictionManagerImpl.java:144)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list