On Tue, Jun 30, 2015 at 7:17 PM, Shawn Heisey <apa...@elyograg.org> wrote:

> On 6/25/2015 2:20 AM, Mikhail Khludnev wrote:
>
>> On Tue, Jun 23, 2015 at 9:23 AM, Rudolf Grigeľ <grige...@gmail.com>
>> wrote:
>>
>>> How can I prevent opening new searcher after
>>> every delete statement ?
>>>
>> comment <updateLog> tag in solrconfig.xml (it always help)
>>
>
> The presence or absence of the updateLog should not affect whether new
> searchers are opened.

Note, it's a realtime searcher, not the plain one.
I reproduced it with the recent release, overall movie seems too long and
boring, here is the crux moment
https://youtu.be/S941iqK9hpw?t=755

here are logs excerpts:
by default <updateLog>

INFO  - 2015-07-01 06:57:05.257; [   db]
org.apache.solr.handler.dataimport.SolrWriter; Deleting documents from Solr
with query: id:F8
V7067-APL-KIT
INFO  - 2015-07-01 06:57:05.363; [   db]
org.apache.solr.search.SolrIndexSearcher; Opening Searcher@f5234ae[db]
realtime
INFO  - 2015-07-01 06:57:05.385; [   db]
org.apache.solr.handler.dataimport.SolrWriter; Deleting documents from Solr
with query: id:IW
-02
INFO  - 2015-07-01 06:57:05.438; [   db]
org.apache.solr.search.SolrIndexSearcher; Opening Searcher@287b075b[db]
realtime
INFO  - 2015-07-01 06:57:05.468; [   db]
org.apache.solr.handler.dataimport.SolrWriter; Deleting documents from Solr
with query: id:MA
147LL/A
INFO  - 2015-07-01 06:57:05.482; [   db]
org.apache.solr.search.SolrIndexSearcher; Opening Searcher@4483483f[db]
realtime
INFO  - 2015-07-01 06:57:05.491; [   db]
org.apache.solr.handler.dataimport.DocBuilder; Import completed successfully

after <!-- updateLog

INFO  - 2015-07-01 07:04:14.533; [   db]
org.apache.solr.handler.dataimport.SolrWriter; Deleting documents from Solr
with query: id:F8
V7067-APL-KIT
INFO  - 2015-07-01 07:04:14.541; [   db]
org.apache.solr.handler.dataimport.SolrWriter; Deleting documents from Solr
with query: id:IW
-02
INFO  - 2015-07-01 07:04:14.553; [   db]
org.apache.solr.handler.dataimport.SolrWriter; Deleting documents from Solr
with query: id:MA
147LL/A



> If this change actually works, I'm pretty sure that's a bug.
>
> IMHO the updateLog should always be enabled on Solr 4.x and up, and
> autoCommit with openSearcher set to false should be configured so the
> transaction logs do not get huge.
>
> Thanks,
> Shawn
>
>


-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
<mkhlud...@griddynamics.com>

Reply via email to