Page MenuHomePhabricator

Limit the number of mw-client-errors from a single client (suggested: maximum 5 errors should be recorded for a single IP on a single page)
Closed, ResolvedPublic

Description

After enabling on Catalan Wikipedia it was apparent that the majority of errors came from a single IP reporting a repeat problem due to the use of several error-throwing setInterval repeat timer. This makes it harder to track down more severe impactful problems as well as prevents us from expanding the error logging to other larger wikis.

The Minerva skin counts errors that occur and was updated to only count up to 5 errors per session. When we did this our error rate halved from roughly 40k a second to 20k a second.

Screen Shot 2020-07-31 at 9.13.52 AM.png (740×1 px, 90 KB)

It's suggested that mw-client-error stops tracking more than 5 errors from a single client to avoid this problem.

For context, 63,583 of 66,727 errors on Catalan Wikipedia are coming from a single gadget with this problem.

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
Resolvedovasileva
ResolvedJdlrobson
Resolvedovasileva
Resolvedovasileva
Resolved jlinehan
Resolved jlinehan
Resolved jlinehan
Resolvedphuedx
Resolved alexhollender_WMF
Resolvedovasileva
DuplicateNone
Resolved alexhollender_WMF
ResolvedMNeisler

Event Timeline

Restricted Application added subscribers: Masumrezarock100, Aklapper. · View Herald Transcript

Any chance we could get this fixed for next week's train?

Change 618763 had a related patch set uploaded (by Jason Linehan; owner: Jason Linehan):
[mediawiki/extensions/WikimediaEvents@master] clientError: Limit to 5 errors/page

https://gerrit.wikimedia.org/r/618763

Change 618763 merged by jenkins-bot:
[mediawiki/extensions/WikimediaEvents@master] clientError: Limit to 5 errors/page

https://gerrit.wikimedia.org/r/618763