lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Grotzke (Updated) (JIRA)" <>
Subject [jira] [Updated] (SOLR-3318) LBHttpSolrServer should allow to specify a preferred server for a query
Date Wed, 04 Apr 2012 23:40:22 GMT


Martin Grotzke updated SOLR-3318:

    Attachment: SOLR-3318.git.patch

Patch created from git changeset.
> LBHttpSolrServer should allow to specify a preferred server for a query
> -----------------------------------------------------------------------
>                 Key: SOLR-3318
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - java
>    Affects Versions: 4.0
>            Reporter: Martin Grotzke
>            Priority: Minor
>         Attachments: SOLR-3318.git.patch
> For a user query we make several solr queries that differ only slightly and therefore
should use/reuse objects cached from the first query (we're using a custom request handler
and custom caches).
> Thus such subsequent queries should hit the same solr server.
> The implemented solution looks like this:
> * The client obtains a live SolrServer from LBHttpSolrServer
> * The client provides this SolrServer as preferred server for a query
> * If the preferred server is no longer alive the request is retried on another live server
> * Everything else follows the existing logic:
> ** After live servers are exhausted, any servers previously marked as dead will be tried
before failing the request
> ** If no live servers are found a SolrServerException is thrown
> The implementation is also [on github|].
> Mailing list thread:

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message