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

Shawn Heisey commented on SOLR-10487:
-------------------------------------

I think that 30 seconds is FAR too short for a default socket timeout.  This 
should be something in the neighborhood of two to ten minutes.  Queries can 
easily take longer than 30 seconds if the index is hosted on hardware that 
doesn't have enough resources.

Also, the specific methods you are using (setConnectionTimeout, setSoTimeout) 
are slated for deprecation and will most likely be gone in version 7.0.  See 
SOLR-8975 and its subtasks.  The settings must be handled when the client is 
first built with its Builder object, and until methods are available at the 
level of the Builder for the SolrClient, it is best to set them when creating 
the HttpClient object.

> Add connection/read timeout for SolrEntityProcessor in DataImportHandler
> ------------------------------------------------------------------------
>
>                 Key: SOLR-10487
>                 URL: https://issues.apache.org/jira/browse/SOLR-10487
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: contrib - DataImportHandler
>    Affects Versions: trunk
>            Reporter: Goutam Mandal
>            Priority: Minor
>              Labels: easyfix
>
> This issue pertains to SolrEntityProcessor for importing documents from one 
> Solr to another over HTTP. There have been instances when the 
> DataImportHandler (DIH) hangs due to network/LB level issues. The abort 
> command fails to stop the in-progress frozen import process. The DIH remains 
> in this state for days and does not accept new request for import until Solr 
> restart. The current implementation of SolrEntityProcessor has timeout at 
> query level only.
> There should be option to specify connection as well as socket read timeouts. 
> The import process must fail in case of any anomaly and not remain in hung 
> state.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to