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

ConcurrentModificationException on the FileListCacheValue

XMLWordPrintable

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

      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

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

                Created:
                Updated:
                Resolved: