Colin Bartolome created SOLR-5745:
-------------------------------------

             Summary: Add an UpdateRequest parameter that lets request wait 
until no searchers are warming before committing
                 Key: SOLR-5745
                 URL: https://issues.apache.org/jira/browse/SOLR-5745
             Project: Solr
          Issue Type: New Feature
          Components: clients - java
    Affects Versions: 4.2.1
            Reporter: Colin Bartolome
            Priority: Minor


In order to avoid "Overlapping onDeckSearchers=2" warnings, we'd like to set 
{{maxWarmingSearchers=1}} in {{solrconfig.xml}}. If we do that, though, and 
happen to request a hard commit while an automatic soft commit is already 
processing, we get an error like this:

{code}
Error opening new searcher. exceeded limit of maxWarmingSearchers=1, try again 
later.
{code}

and the request fails.

What we'd like to see is for {{UpdateRequest}} to support a parameter, similar 
to the existing {{waitSearcher}} parameter, that instructs the server to hold 
the request until no other searchers were currently warming. (Or, more 
precisely, until the request could proceed without exceeding 
{{maxWarmingSearchers}}.)

It seems something like this could eliminate the performance penalty of having 
multiple on-deck searchers without the unpredictable errors caused by setting 
{{maxWarmingSearchers=1}}. The performance penalty moves to a place that 
expects it: the code that requested a commit and said it was willing to wait.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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

Reply via email to