[ https://issues.apache.org/jira/browse/SOLR-13887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17030936#comment-17030936 ]
ASF subversion and git services commented on SOLR-13887: -------------------------------------------------------- Commit 80ed8c281b354884561b8f1edbadb5e369de3d52 in lucene-solr's branch refs/heads/master from Houston Putman [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=80ed8c2 ] SOLR-13887: Use the default idleTimeout instead of 0 for HTTP2 (#991) > 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 > Components: http2 > Affects Versions: 8.0, master (9.0) > Reporter: Houston Putman > Assignee: Houston Putman > Priority: Minor > Fix For: master (9.0), 8.5 > > Time Spent: 0.5h > Remaining Estimate: 0h > > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org