Hi,

It seems to me that <openSearcher>false</openSearcher> is not being
honored, or does a softCommit always happen on an autoCommit?

Cache reloads seems to coincide with solr.autoCommit.maxTime:

We have the following solrconfig snippet:

    <autoCommit>
      <maxTime>${solr.autoCommit.maxTime:15000}</maxTime>
      <openSearcher>false</openSearcher>
    </autoCommit>

    <autoSoftCommit>
      <maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime>
    </autoSoftCommit>


I see the following in the logs:

021-11-23 15:10:38.976 INFO  (commitScheduler-643-thread-1) [   ]
o.a.s.u.DirectUpdateHandler2 start
commit{,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,softCommit=true,prepareCommit=false}
2021-11-23 15:10:39.016 INFO  (commitScheduler-643-thread-1) [   ]
o.a.s.s.SolrIndexSearcher Opening [Searcher@40ed009c[jobs-2021-11-2
3_shard1_replica_n1] main]
2021-11-23 15:10:39.016 INFO  (commitScheduler-643-thread-1) [   ]
o.a.s.u.DirectUpdateHandler2 end_commit_flush
2021-11-23 15:10:45.079 INFO  (commitScheduler-642-thread-1) [   ]
o.a.s.u.DirectUpdateHandler2 start commit{,optimize=false,openSearc
her=false,waitSearcher=true,expungeDeletes=false,softCommit=false,prepareCommit=false}
2021-11-23 15:10:45.079 INFO  (commitScheduler-642-thread-1) [   ]
o.a.s.u.SolrIndexWriter Calling setCommitData with IW:org.apache.so
lr.update.SolrIndexWriter@5c52f993 commitCommandVersion:0
2021-11-23 15:10:45.396 INFO  (commitScheduler-642-thread-1) [   ]
o.a.s.s.SolrIndexSearcher Opening [Searcher@6e86071d[jobs-2021-11-2
3_shard1_replica_n1] realtime]
2021-11-23 15:10:45.397 INFO  (commitScheduler-642-thread-1) [   ]
o.a.s.u.DirectUpdateHandler2 end_commit_flush

So
commitScheduler-643-thread-1 seems to set openSearcher=true and
softCommit=true for 'main' and (main is the REAL client facing searcher?)
commitScheduler-642-thread-1 seems to set openSearcher=false and
softCommit=false for 'realtime'  (I think realtime is for bookeeping?)

Many thanks in advance,
Dan

Reply via email to