[infinispan-issues] [JBoss JIRA] (ISPN-5596) "Cannot clear data directory" in SoftIndexFileStore when clear() is called after stopping and restarting cache

Andreas Pabst (JIRA) issues at jboss.org
Mon Apr 25 12:30:00 EDT 2016


    [ https://issues.jboss.org/browse/ISPN-5596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13196750#comment-13196750 ] 

Andreas Pabst commented on ISPN-5596:
-------------------------------------

I created a separate issue ISPN-6546 for the IllegalArgumentException (Negative position) that is described in the last line of this bug report since it seems to be a separate issue that has been fixed in the 8.2.x development branch.

> "Cannot clear data directory" in SoftIndexFileStore when clear() is called after stopping and restarting cache
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: ISPN-5596
>                 URL: https://issues.jboss.org/browse/ISPN-5596
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Loaders and Stores
>    Affects Versions: 7.2.3.Final
>         Environment: Windows 7
>            Reporter: Andreas Pabst
>            Assignee: Radim Vansa
>         Attachments: SoftIndexFileStoreTest.java, test.log, test2.log, test3.log
>
>
> When stopping and restarting a cache with SoftIndexFileStore persistence, it behaves strangely. 
> Calling cache.clear() leads to the following exception:
> ERROR: ISPN000136: Execution error
> org.infinispan.persistence.spi.PersistenceException: Cannot clear data directory!
> 	at org.infinispan.persistence.sifs.SoftIndexFileStore.clear(SoftIndexFileStore.java:234)
> 	at org.infinispan.persistence.manager.PersistenceManagerImpl.clearAllStores(PersistenceManagerImpl.java:372)
> 	at org.infinispan.interceptors.CacheWriterInterceptor.visitClearCommand(CacheWriterInterceptor.java:158)
> ...
> Caused by: java.io.IOException: Cannot delete file soft-index-test\data\2
> 	at org.infinispan.persistence.sifs.FileProvider.clear(FileProvider.java:205)
> 	at org.infinispan.persistence.sifs.SoftIndexFileStore.clear(SoftIndexFileStore.java:232)
> If the manager is also stopped and recreated every time, this only happens after the third iteration.
> ---
> Calling cache.remove() in the same place leads to an unrecoverable corruption of the cache store files: java.lang.IllegalArgumentException: Negative position
> A separate issue has been filed for this issue: ISPN-6546



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the infinispan-issues mailing list