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

ConcurrentModificationException on the FileListCacheValue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 7.0.0.CR1
    • 7.0.0.Beta2
    • Embedded Querying
    • None

    Description

      Since ISPN-4692 that made FileListCacheValue DeltaAware, the following is happening when running org.infinispan.lucene.profiling.PerformanceCompareStressTest:

      java.util.ConcurrentModificationException
      	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:922)
      	at java.util.HashMap$KeyIterator.next(HashMap.java:956)
      	at java.util.AbstractCollection.toArray(AbstractCollection.java:195)
      	at org.infinispan.lucene.impl.FileListCacheValue.toArray(FileListCacheValue.java:109)
      	at org.infinispan.lucene.impl.FileListOperations.listFilenames(FileListOperations.java:101)
      	at org.infinispan.lucene.impl.DirectoryImplementor.list(DirectoryImplementor.java:56)
      	at org.infinispan.lucene.impl.DirectoryLuceneV4.listAll(DirectoryLuceneV4.java:123)
      	at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:759)
      

      The problem is that the deltas are not being applied in a thread safe manner

      Attachments

        Activity

          People

            gfernand@redhat.com Gustavo Fernandes (Inactive)
            gfernand@redhat.com Gustavo Fernandes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: