You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Houston Putman (Jira)" <ji...@apache.org> on 2019/11/01 20:16:00 UTC

[jira] [Created] (SOLR-13887) socketTimeout of 0 causing timeouts in the Http2SolrClient

Houston Putman created SOLR-13887:
-------------------------------------

             Summary: socketTimeout of 0 causing timeouts in the Http2SolrClient
                 Key: SOLR-13887
                 URL: https://issues.apache.org/jira/browse/SOLR-13887
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: http2
    Affects Versions: master (9.0), 8.4
            Reporter: Houston Putman
             Fix For: master (9.0), 8.4


In Solr 7, and previous versions, the both the *socketTimeout* and *connTimeout* defaults in _solr.xml_ have accepted 0 as values. This is even [documented in the ref guide|https://lucene.apache.org/solr/guide/8_2/format-of-solr-xml.html#defining-solr-xml]. Using these same defaults with Solr 8 results in timeouts when trying to manually create replicas. The major change here seems to be that the Http2SolrClient is being used instead of the HttpSolrClient used in Solr 7 and previous versions.

After some digging, I think that the issue lies in the Http2SolrClient, [specifically here|https://github.com/apache/lucene-solr/blob/master/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java#L399]. Since the idleTimeout is set to 0, since that is what solr pulls from the solr.xml, the listener immediately responds with a timeout.

The fix here is pretty simple, just set a default if 0 is provided. Basically treat an idleTimeout (or socketTimeout) of 0 the same as null. The ref-guide should also likely be updated with the same defaults as used in the solr.xml packaged in Solr.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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