10 Replies Latest reply on Sep 18, 2015 4:41 AM by Radim Vansa

    Is that ok to use infinispan Soft Index File Store?

    Howard Chou Newbie

      I am trying to use infinispan 7.*  in my application as a local cache ,also with a persistence cache store using soft index file store .

      the application  dumps data into local cache and cache store  at first , then it can reload into the memory from cache store when the application startup everytime.

      when I used Single file store , it was all right,nothing special happened.

      but when I used soft index file store instead , it came out some strange exceptions occasionally when I restarted my application to reload from the cache store :


      Caused by: java.lang.IllegalArgumentException: Negative position
        at sun.nio.ch.FileChannelImpl.read(Unknown Source)
        at org.infinispan.persistence.sifs.FileProvider$Handle.read(FileProvider.java:291)
        at org.infinispan.persistence.sifs.EntryRecord.read(EntryRecord.java:85)
        at org.infinispan.persistence.sifs.EntryRecord.readEntryHeader(EntryRecord.java:55)
        at org.infinispan.persistence.sifs.SoftIndexFileStore$1.apply(SoftIndexFileStore.java:169)
        at org.infinispan.persistence.sifs.SoftIndexFileStore.forEachOnDisk(SoftIndexFileStore.java:443)
        ... 49 more


      I have no idea  with what happened,is that bug or something ?

      Is that a good idea to use soft index file store ? is it still experimental?

      I really need advices, Thanks !