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

ASF GitHub Bot commented on SOLR-10487:
---------------------------------------

GitHub user gmandal opened a pull request:

    https://github.com/apache/lucene-solr/pull/185

    SOLR-10487: Added support to specify connection and socket read timeout in 
DataImportHandler for SolrEntityProcessor.

    Includes changes for 
[SOLR-10487](https://issues.apache.org/jira/browse/SOLR-10487).
    Added two more attributes to 
[SolrEntityProcessor](https://wiki.apache.org/solr/DataImportHandler#SolrEntityProcessor)
 in DataImportHandler.
    `connectionTimeout` to set the Connection Timeout
    `readTimeout` to set Socket Read Timeout 
    Additionally renamed `timeout` to `queryTimeout` to differentiate between 
the various timeouts. The older `timeout` is still retained to ensure backward 
compatibility. `timeout `would act same as `queryTimeout`.
    The two new attributes would accept values in the same format and unit (int 
seconds) as the existing query timeout attribute.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gmandal/lucene-solr SOLR-10487

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucene-solr/pull/185.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #185
    
----
commit 91083a84c024ba8bcfafba6c63a0b085c32ec46d
Author: gmandal <[email protected]>
Date:   2017-04-13T12:14:43Z

    SOLR-10487: Added support to specify connection and socket read timeout.
    
    connectionTimeout and readTimeout attributes added to
    SolrEntityProcessor in DataImportHandler to avoid freeze issues.

----


> 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