Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-5443

DocValuesProducer#ramBytesUsed throws ConcurrentModificationException

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.6, 4.6.1, 4.7, 6.0
    • 4.7, 6.0
    • core/codecs
    • None
    • New, Patch Available

    Description

      this came up in an elasticsearch issue that if you pull #ramBytesUsed() while docvalues are loaded in a seperate thread you see a ConcurrentModificationException here is an example:

      Caused by: java.util.ConcurrentModificationException
              at java.util.HashMap$HashIterator.nextEntry(HashMap.java:926)
              at java.util.HashMap$ValueIterator.next(HashMap.java:954)
              at org.apache.lucene.codecs.lucene45.Lucene45DocValuesProducer.ramBytesUsed(Lucene45DocValuesProducer.java:291)
              at org.apache.lucene.codecs.perfield.PerFieldDocValuesFormat$FieldsReader.ramBytesUsed(PerFieldDocValuesFormat.java:308)
              at org.apache.lucene.index.SegmentDocValues.ramBytesUsed(SegmentDocValues.java:103)
              at org.apache.lucene.index.SegmentReader.ramBytesUsed(SegmentReader.java:555)
      

      Attachments

        1. LUCENE-5443.patch
          4 kB
          Shai Erera

        Activity

          People

            shaie Shai Erera
            simonw Simon Willnauer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: