Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C9349DB5 for ; Wed, 4 Apr 2012 23:28:47 +0000 (UTC) Received: (qmail 52537 invoked by uid 500); 4 Apr 2012 23:28:46 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 52480 invoked by uid 500); 4 Apr 2012 23:28:46 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 52465 invoked by uid 99); 4 Apr 2012 23:28:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 23:28:46 +0000 X-ASF-Spam-Status: No, hits=-1998.7 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 23:28:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 81F6E3581C4 for ; Wed, 4 Apr 2012 23:28:21 +0000 (UTC) Date: Wed, 4 Apr 2012 23:28:21 +0000 (UTC) From: "Martin Grotzke (Created) (JIRA)" To: dev@lucene.apache.org Message-ID: <398128829.14837.1333582101533.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (SOLR-3318) LBHttpSolrServer should allow to specify a preferred server for a query MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 LBHttpSolrServer should allow to specify a preferred server for a query ----------------------------------------------------------------------- Key: SOLR-3318 URL: https://issues.apache.org/jira/browse/SOLR-3318 Project: Solr Issue Type: Improvement Components: clients - java Affects Versions: 4.0 Reporter: Martin Grotzke Priority: Minor 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|https://github.com/magro/lucene-solr/commit/a75aef3d]. Mailing list thread: http://lucene.472066.n3.nabble.com/LBHttpSolrServer-to-query-a-preferred-server-tt3884140.html -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org