lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Gerlowski <gerlowsk...@gmail.com>
Subject Re: CloudSolrServer set http request timeout
Date Thu, 21 Sep 2017 17:51:12 GMT
Hi Vincenzo,

Have you tried setting the read/socket timeout on your client?
CloudSolrServer uses a LBHttpSolrServer under the hood, which you can
get with the getLBServer method
(https://lucene.apache.org/solr/4_1_0/solr-solrj/org/apache/solr/client/solrj/impl/CloudSolrServer.html#getLbServer()).
Once you have access to LBHttpSolrServer, you can use the
"setSoTimeout" method
(https://lucene.apache.org/solr/4_1_0/solr-solrj/org/apache/solr/client/solrj/impl/LBHttpSolrServer.html#setSoTimeout(int))
to choose an appropriate maximum timeout.

At least, that's how the Javadocs make it look in 4.x, and how I know
it works in more recent versions.  Hope that helps.

Jason

On Thu, Sep 21, 2017 at 1:07 PM, Vincenzo D'Amore <v.damore@gmail.com> wrote:
> Hi,
>
> I have a huge problem with few queries in SolrCloud 4.8.1 that hangs the
> client.
>
> Actually I'm unable to understand even if the cluster really receives the
> requests.
>
> How can I set a timeout when Solrj client wait too much ?
>
> Best regards,
> Vincenzo
>
> --
> Vincenzo D'Amore
> email: v.damore@gmail.com
> skype: free.dev
> mobile: +39 349 8513251

Mime
View raw message