Solr
  1. Solr
  2. SOLR-800

concurrentmodification exception for XPathEntityprocessor while streaming

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Labels:
      None

      Description

      While doing an import for an XPathEntityprocessor with stream="true"
      The stacktrace
      java.util.ConcurrentModificationException
      atjava.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
      at java.util.AbstractList$Itr.next(AbstractList.java:343)
      at org.apache.solr.handler.dataimport.DocBuilder.addFieldValue(DocBuilder.java:402)
      at org.apache.solr.handler.dataimport.DocBuilder.addFields(DocBuilder.java:373)
      at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:304)
      at org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:178)
      at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:136)
      at org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:334)
      at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:386)
      at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:377)

        Activity

        Hide
        Noble Paul added a comment -

        The XPathrecordReader makes a copy of each row before handing it over to the consumer. if a field is a multivalued field (a collection) then the copying is a shallow one. So the colection may get modified later and we get a ConcurrrentModificationException

        Show
        Noble Paul added a comment - The XPathrecordReader makes a copy of each row before handing it over to the consumer. if a field is a multivalued field (a collection) then the copying is a shallow one. So the colection may get modified later and we get a ConcurrrentModificationException
        Hide
        Shalin Shekhar Mangar added a comment -

        Committed revision 704365.

        Thanks Kyle and Noble!

        Show
        Shalin Shekhar Mangar added a comment - Committed revision 704365. Thanks Kyle and Noble!
        Hide
        Grant Ingersoll added a comment -

        Bulk close for Solr 1.4

        Show
        Grant Ingersoll added a comment - Bulk close for Solr 1.4

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            Noble Paul
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development