lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich Cariens (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (SOLR-2253) Solr should be able to keep on truckin' if a shard fails during a distributed search
Date Fri, 26 Nov 2010 02:12:13 GMT

    [ https://issues.apache.org/jira/browse/SOLR-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935806#action_12935806
] 

Rich Cariens edited comment on SOLR-2253 at 11/25/10 9:10 PM:
--------------------------------------------------------------

I've attached a patch for the following classes:

  org.apache.solr.handler.component.SearchHandler
  org.apache.solr.common.params.CommonParams

and the example search request handler configuration:

  example/solr/conf/solrconfig.xml

To see this patch in action, apply it at the solr root and run "ant example".  Then follow
the distributed search example instructions (http://wiki.apache.org/solr/DistributedSearch#Distributed_Search_Example)
to get two Solr instances running locally.  Run the curl command to search across both instances.
 Stop the instance that's listening on port 7574 and re-run the curl command.  You will get
a search response containing a header that reports you've got partial results, as well as
which shard failed.

      was (Author: cariensrs):
    I've attached a patch for the following classes:

  org.apache.solr.handler.component.SearchHandler
  org.apache.solr.common.params.CommonParams

and the example search request handler configuration:

  example/solr/conf/solrconfig.xml
  
> Solr should be able to keep on truckin' if a shard fails during a distributed search
> ------------------------------------------------------------------------------------
>
>                 Key: SOLR-2253
>                 URL: https://issues.apache.org/jira/browse/SOLR-2253
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>    Affects Versions: 1.4.1
>         Environment: All
>            Reporter: Rich Cariens
>            Priority: Critical
>         Attachments: SOLR-2253.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Solr 1.4.x currently abandons searches if a shard fails during a distributed search.
 A trivial patch to the SearchHandler class would allow the user to tell Solr to "keep on
trucking" in these cases.  Solr can indicate that the search response is "partial" via existing
response header conventions, as well as include details about which shard failed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message