I'm not currently looking at any code, but if the idea is that you put in
that assert and ran the nightly or none nightly tests, I wouldn't come to
the conclusion that that code path is never hit unless you've walked
through all of the possible concurrency potential around it in the code.

- MRM


On Tue, Jul 16, 2024 at 8:04 AM David Smiley <dsmi...@apache.org> wrote:

> SolrCore.getRealtimeSearcher returns the existing searcher if there is
> one, or otherwise creates one.  I did a little experiment to "assert
> false" where it creates one.  It never tripped!  On any commit, that
> searcher is installed as the realtime searcher, and furthermore a
> searcher is created on core open as well (of course).  I wonder what
> led to the distinction in the first place.  Has it always been this
> way or was there a time long ago when there was a real chance of not
> having a "real" searcher?  Hmm.
>
> ~ David Smiley
> Apache Lucene/Solr Search Developer
> http://www.linkedin.com/in/davidwsmiley
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@solr.apache.org
> For additional commands, e-mail: dev-h...@solr.apache.org
>
>

Reply via email to