lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shalin Shekhar Mangar (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-9262) Connection and read timeouts are being ignored by UpdateShardHandler
Date Fri, 01 Jul 2016 07:40:11 GMT

     [ https://issues.apache.org/jira/browse/SOLR-9262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shalin Shekhar Mangar updated SOLR-9262:
----------------------------------------
    Attachment: SOLR-9262.patch

HttpClientUtil.createClient has the following which makes it impossible to set the connection
and read timeouts. 
{code}
if (params.get(PROP_SO_TIMEOUT) != null || params.get(PROP_CONNECTION_TIMEOUT) != null) {
      throw new SolrException(ErrorCode.SERVER_ERROR, "The socket connect and read timeout
cannot be set here and must be set");
    }
{code}

This patch gets rid of it.

> Connection and read timeouts are being ignored by UpdateShardHandler
> --------------------------------------------------------------------
>
>                 Key: SOLR-9262
>                 URL: https://issues.apache.org/jira/browse/SOLR-9262
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>    Affects Versions: master (7.0)
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>             Fix For: master (7.0)
>
>         Attachments: SOLR-9262.patch, SOLR-9262.patch
>
>
> SOLR-4509 removed the usage of distribUpdateSoTimeout and distribUpdateConnTimeout from
UpdateShardHandler causing the http client to be created with its default values of connection
and read timeout.
> https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;a=blobdiff;f=solr/core/src/java/org/apache/solr/update/UpdateShardHandler.java;h=4fe869c25c9ea0588903d8d366e8d3533835b601;hp=a44b8f87b766d4f998d534156ceb83f4d42eadbb;hb=ce172ac;hpb=3f217aba6d4422d829be5ad77b02068c130dc7d3



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message