Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13887

socketTimeout of 0 causing timeouts in the Http2SolrClient

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.0, master (9.0)
    • Fix Version/s: master (9.0), 8.5
    • Component/s: http2
    • Labels:
      None

      Description

      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. 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. 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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                houston Houston Putman
                Reporter:
                houstonputman Houston Putman
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h