You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2014/03/07 11:33:42 UTC

[jira] [Updated] (SOLR-5826) Request caching SolrServer

     [ https://issues.apache.org/jira/browse/SOLR-5826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tommaso Teofili updated SOLR-5826:
----------------------------------

    Attachment: SOLR-5826.patch

attached first draft patch which introduces a RequestCachingSolrServer.
It still needs to be improved to switch from active to passive wait for consuming cached requests.
The testcase needs to be adjusted as it only works for me from IDE (strangely failing from ant due to File permissions on the index ..).

> Request caching SolrServer
> --------------------------
>
>                 Key: SOLR-5826
>                 URL: https://issues.apache.org/jira/browse/SOLR-5826
>             Project: Solr
>          Issue Type: New Feature
>          Components: clients - java
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 5.0
>
>         Attachments: SOLR-5826.patch
>
>
> As stated in http://markmail.org/thread/a477kyxsp5xrusdu there're scenarios where an application communicating with Solr needs to not loose requests (especially update/indexing requests) that may fail because Solr instance / cluster is not reachable for some time.
> For such scenarios it may helpful to have a wrapping SolrServer which can cache (in a FIFO queue, so that they get executed in order) requests when the Solr endpoint is not reachable and execute them as soon as it's reachable again.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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