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

DocValuesProducer#ramBytesUsed throws ConcurrentModificationException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.6, 4.6.1, 4.7, 6.0
    • Fix Version/s: 4.7, 6.0
    • Component/s: core/codecs
    • Labels:
      None
    • Lucene Fields:
      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

          Activity

            People

            • Assignee:
              shaie Shai Erera
              Reporter:
              simonw Simon Willnauer
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: