Page MenuHomePhabricator

Further reduce noise in log files for non-existent host
Closed, ResolvedPublic

Description

Author: ram

Description:

Indexes disabled by being mapped to a non-existent host are still generating a large volume of stack traces on some hosts. A sample from search1015 looks like this:

2013-04-16 00:00:00,994 [pool-1-thread-80] WARN org.wikimedia.lsearch.search.WikiSearcher - Cannot get a search index (nor local or remote) for nl-titles.tspart1
2013-04-16 00:00:00,994 [pool-1-thread-80] WARN org.wikimedia.lsearch.search.WikiSearcher - Cannot get a search index (nor local or remote) for nl-titles.tspart2
2013-04-16 00:00:00,994 [pool-1-thread-80] ERROR org.wikimedia.lsearch.search.SearchEngine - Error fetching grouped titles: Error constructing searcher for nl-titles
java.io.IOException: Error constructing searcher for nl-titles

at org.wikimedia.lsearch.search.WikiSearcher.<init>(WikiSearcher.java:104)
at org.wikimedia.lsearch.search.SearchEngine.fetchTitles(SearchEngine.java:898)
at org.wikimedia.lsearch.search.SearchEngine.search(SearchEngine.java:731)
at org.wikimedia.lsearch.search.SearchEngine.search(SearchEngine.java:136)
at org.wikimedia.lsearch.frontend.SearchDaemon.processRequest(SearchDaemon.java:106)
at org.wikimedia.lsearch.frontend.HttpHandler.handle(HttpHandler.java:197)
at org.wikimedia.lsearch.frontend.HttpHandler.run(HttpHandler.java:114)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

The number of such messages on search1015/search1016:
(using: grep -c "Error constructing searcher for" log)
419862
416670

A patch to fix this will be committed shortly.


Version: wmf-deployment
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=45795

Details

Reference
bz47293

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:42 AM
bzimport set Reference to bz47293.
bzimport added a subscriber: Unknown Object (MLST).

ram wrote:

Bug 45795 fixes this issue for a couple of code paths; this bug fixes the remaining third code path.

Related URL: https://gerrit.wikimedia.org/r/59533 (Gerrit Change Ie6be47113e57b8419d041909bff458b171b263a0)

https://gerrit.wikimedia.org/r/59533 (Gerrit Change Ie6be47113e57b8419d041909bff458b171b263a0) | change APPROVED and MERGED [by Tim Starling]

Merged on April 23th. Closing as FIXED.