Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-690

java.io.FileNotFoundException during Directory.copy

    XMLWordPrintable

Details

    • Hide

      Attached test case

      Show
      Attached test case
    • Hide

      Only workarrounds are disable eviction

      Show
      Only workarrounds are disable eviction

    Description

      I've been experiencing this error in an application I am developing and finally tracked it down to a more simple case

      The stack trace is

      java.io.FileNotFoundException: Error loading medatada for index file: _0.cfs|M|test1
      at org.infinispan.lucene.InfinispanDirectory.openInput(InfinispanDirectory.java:262)
      at org.apache.lucene.store.Directory.copy(Directory.java:221)

      The actual cause of this error appears to be an issue with DistributedSegmentReadLocker

      During org.infinispan.lucene.InfinispanIndexInput.close(), readLocks.deleteOrReleaseReadLock() is called.

      When eviction is enabled it appears the FileReadLockKey for the .cfs file is being evicted, as SKIP_CACHE_STORE is specified null returns for the lock which causes DistributedSegmentReadLocker to proceded to delete the actual .cfs file

      When a later step tried to access the file it no longer exists resulting in the fileNotFoundException

      Attachments

        Issue Links

          Activity

            People

              sgrinove Sanne Grinovero
              paulnardone Paul Nardone (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: