Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13457 Managing Timeout values in Solr
  3. SOLR-13459

Streaming Expressions experience a hard coded timeout

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: streaming expressions
    • Labels:
      None

      Description

      SolrClientBuilder has the capability to configure a timeout, but the usage in SolrStream accepts the hard-coded default:

        /**
        * Opens the stream to a single Solr instance.
        **/
      
        public void open() throws IOException {
          if(cache == null) {
            client = new HttpSolrClient.Builder(baseUrl).build();
          } else {
            client = cache.getHttpSolrClient(baseUrl);
          }
       

      While it might also be possible to specify the timeout in the expression, that also sounds like something that bloats the high level expression with low level concerns, so this ticket proposes to have SolrStream set a timeout on the builder which it will get from the StreamContext. When instantiated by the stream handler, the stream context in turn will set this based on a default timeout for inter-node communication defined in solr.xml.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gus Gus Heck
              • Votes:
                6 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: