[ 
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to