[ 
https://issues.apache.org/jira/browse/CONNECTORS-616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13558168#comment-13558168
 ] 

Shinichiro Abe commented on CONNECTORS-616:
-------------------------------------------

I sync trunk up and I looked at r1435540 (trunk). Please tweak this code:

{code:title=HttpPoster.java|borderStyle=solid}
             // Broken pipe exceptions we log specially because they usually 
mean
             // Solr has rejected the document, and the user will want to know 
that.
             if (e.getCause() != null && 
e.getCause().getClass().getName().equals("java.net.SocketException") &&
-              activityDetails.indexOf("broken pipe") != -1)
+              activityDetails.toLowerCase().indexOf("broken pipe") != -1)
               activityCode = "SOLR REJECT";
{code} 

BTW, I'd like to support not only for "Broken pipe" but also for "Connection 
reset" and "The target server failed to respond".
Because I watched those IOExceptions in Simple history.
Would you support those IOExceptions?

{noformat}
01-20-2013 14:45:15.697 document ingest (1)     file:/Users/abe/Desktop/1/3.doc
FAILED  1470464 57      IOException occured when talking to server at: 
http://localhost:8983/solr: Connection reset
{noformat}

Now I can't reproduce the history that is showing "The target server failed to 
respond" though.


                
> Solr Connector gets broken pipe IOExceptions a lot
> --------------------------------------------------
>
>                 Key: CONNECTORS-616
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-616
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Lucene/SOLR connector
>    Affects Versions: ManifoldCF 1.1
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>            Priority: Blocker
>             Fix For: ManifoldCF 1.1
>
>
> Simple history is showing the following:
> {code}
> 01-18-2013 11:27:37.444 document ingest (1)     
> file://///192.168.11.5/Sales/1-Quote/Quote-AAA.xls
> FAILED  16896   3       IOException occured when talking to server at: 
> http://localhost:8983/solr: Broken pipe
> 01-18-2013 11:27:37.256 document ingest (1)     
> file://///192.168.11.5/Sales/1-Quote/Quote-BBB.xls
> FAILED  16896   2       IOException occured when talking to server at: 
> http://localhost:8983/solr: Broken pipe
> {code}
> Broken pipe exceptions should be being considered a Solr document rejection, 
> akin to a 4xx error code.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to