[infinispan-issues] [JBoss JIRA] (ISPN-7186) ISPN000279: Failed to read stored ... should not halt startup

Dmitry Katsubo (JIRA) issues at jboss.org
Thu Jan 4 08:56:00 EST 2018


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

Dmitry Katsubo commented on ISPN-7186:
--------------------------------------

In my case when Infinispan storage is configured to purge on startup ({{<file-store path="..." purge="true">}}) so I would expect that store is purged before it is attempted to be loaded, however the above exception happens. Can {{PersistenceManagerImpl#start()}} first call {{((AdvancedCacheWriter) writer).clear()}} and then load entities from storage?

> ISPN000279: Failed to read stored ... should not halt startup
> -------------------------------------------------------------
>
>                 Key: ISPN-7186
>                 URL: https://issues.jboss.org/browse/ISPN-7186
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Loaders and Stores
>    Affects Versions: 8.2.2.Final
>            Reporter: Elias Ross
>
> I've observed the following error, which periodically happens when the application restarts.
> This is likely due to a non-clean shutdown truncating the file. Ideally Inifinispan can simply truncate or skip such entries without blocking start-up
> Caused by: org.infinispan.persistence.spi.PersistenceException: org.infinispan.persistence.spi.PersistenceException: ISPN000279: Failed to re
> ad stored entries from file. Error in file raster.dat at offset 4
>         at org.infinispan.persistence.file.SingleFileStore.start(SingleFileStore.java:135) ~[org.infinispan-infinispan-core-8.2.2.Final.jar:8
> .2.2.Final]
>         at org.infinispan.persistence.manager.PersistenceManagerImpl.start(PersistenceManagerImpl.java:144) ~[org.infinispan-infinispan-core-
> 8.2.2.Final.jar:8.2.2.Final]
>         ... 115 common frames omitted
> Caused by: org.infinispan.persistence.spi.PersistenceException: ISPN000279: Failed to read stored entries from file. Error in file raster.dat at offset 4
>         at org.infinispan.persistence.file.SingleFileStore.rebuildIndex(SingleFileStore.java:195) ~[org.infinispan-infinispan-core-8.2.2.Fina
> l.jar:8.2.2.Final]
>         at org.infinispan.persistence.file.SingleFileStore.start(SingleFileStore.java:126) ~[org.infinispan-infinispan-core-8.2.2.Final.jar:8
> .2.2.Final]
>         ... 116 common frames omitted



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list