You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Reuben Firmin (JIRA)" <ji...@apache.org> on 2010/08/03 18:28:21 UTC

[jira] Created: (SOLR-2024) StreamingUpdateSolrServer encounters ConcurrentModificationException

StreamingUpdateSolrServer encounters ConcurrentModificationException
--------------------------------------------------------------------

                 Key: SOLR-2024
                 URL: https://issues.apache.org/jira/browse/SOLR-2024
             Project: Solr
          Issue Type: Bug
          Components: clients - java
    Affects Versions: 1.4.1
            Reporter: Reuben Firmin


We are intermittently encountering this bug when using the StreamingUpdateSolrServer. It appears to be caused by many near-simultaneous requests to the add method. We were initially using 1.4 dev, but have since updated to 1.4.1, and are still encountering the issue.

java.util.ConcurrentModificationException
        at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
        at java.util.AbstractList$Itr.next(AbstractList.java:343)
        at org.hibernate.collection.AbstractPersistentCollection$IteratorProxy.next(AbstractPersistentCollection.java:577)
        at org.apache.solr.client.solrj.util.ClientUtils.writeXML(ClientUtils.java:105)
        at org.apache.solr.client.solrj.request.UpdateRequest.writeXML(UpdateRequest.java:213)
        at org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer$Runner$1.writeRequest(StreamingUpdateSolrServer.java:100)
        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
        at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
        at org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer$Runner.run(StreamingUpdateSolrServer.java:137)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (SOLR-2024) StreamingUpdateSolrServer encounters ConcurrentModificationException

Posted by "Reuben Firmin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894921#action_12894921 ] 

Reuben Firmin commented on SOLR-2024:
-------------------------------------

FWIW this appears to be SOLR-1711, but I opened a new bug rather than commenting on that, since it is closed.

> StreamingUpdateSolrServer encounters ConcurrentModificationException
> --------------------------------------------------------------------
>
>                 Key: SOLR-2024
>                 URL: https://issues.apache.org/jira/browse/SOLR-2024
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 1.4.1
>            Reporter: Reuben Firmin
>
> We are intermittently encountering this bug when using the StreamingUpdateSolrServer. It appears to be caused by many near-simultaneous requests to the add method. We were initially using 1.4 dev, but have since updated to 1.4.1, and are still encountering the issue.
> java.util.ConcurrentModificationException
>         at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
>         at java.util.AbstractList$Itr.next(AbstractList.java:343)
>         at org.hibernate.collection.AbstractPersistentCollection$IteratorProxy.next(AbstractPersistentCollection.java:577)
>         at org.apache.solr.client.solrj.util.ClientUtils.writeXML(ClientUtils.java:105)
>         at org.apache.solr.client.solrj.request.UpdateRequest.writeXML(UpdateRequest.java:213)
>         at org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer$Runner$1.writeRequest(StreamingUpdateSolrServer.java:100)
>         at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
>         at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
>         at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
>         at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
>         at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
>         at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>         at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
>         at org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer$Runner.run(StreamingUpdateSolrServer.java:137)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org