Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5745

Add an UpdateRequest parameter that lets request wait until no searchers are warming before committing

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.2.1
    • None
    • clients - java
    • None

    Description

      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:

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

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cbartolo Colin Bartolome
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: