Page MenuHomePhabricator

Moving of translation page fails with OOM exception (database job queue backend)
Closed, ResolvedPublicBUG REPORT

Description

Steps to Reproduce:

  1. Try to move https://translatewiki.net/wiki/User:Abijeet_Patro/test-no-wrap to a new location - https://translatewiki.net/wiki/User:Abijeet_Patro/test-no-wrap-2

Actual Results:

  1. No entry in the page translation logs
  2. Logs have OOM exceptions

Expected Results:
Page should be moved appropriately.

Exception

[19-Aug-2020 15:44:54 UTC] PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes) in /srv/mediawiki/tags/2020-08-19_15:12:16/includes/libs/rdbms/database/Database.php on line 1254
[19-Aug-2020 15:44:54 UTC] PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0

# Appears after a few minutes of marking the page for translation, I *think* it is related
[19-Aug-2020 15:47:52 UTC] PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes) in /srv/mediawiki/tags/2020-08-19_15:12:16/vendor/wikimedia/at-ease/src/Wikimedia/AtEase/AtEase.php on line 36
[19-Aug-2020 15:47:52 UTC] PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0

Some possibly related logs, noticed during a prior test run:

[2020-08-19 15:07:45] exception.ERROR: [df8617ccdb6177825252aeab] /srv/mediawiki/targets/production/maintenance/runJobs.php   PHP Fatal Error from line 125 of /srv/mediawiki/tags/2020-08-12_14:28:07/includes/jobqueue/JobSpecification.php: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) {"exception":"[object] (ErrorException(code: 0): PHP Fatal Error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) at /srv/mediawiki/tags/2020-08-12_14:28:07/includes/jobqueue/JobSpecification.php:125)

Status

Fixed by T268840: Infinite loop in DeferredUpdates::tryOpportunisticExecute and fix confirmed by Language team

Outcome

It is now possible again to move translatable pages on translatewiki.net and in other wikis outside Wikimedia production that use similar setup.

Event Timeline

abi_ renamed this task from Moving of trranslation page fails on translatewiki.net with OOM to Moving of trranslation page fails on translatewiki.net with OOM exception.Aug 19 2020, 3:56 PM
Pppery renamed this task from Moving of trranslation page fails on translatewiki.net with OOM exception to Moving of translation page fails on translatewiki.net with OOM exception.Aug 19 2020, 4:40 PM

Planning to do some live-debugging on canary to identify the cause.

Nikerabbit renamed this task from Moving of translation page fails on translatewiki.net with OOM exception to Moving of translation page fails with OOM exception (database job queue backend).Jan 11 2021, 8:48 AM

Based on my own testing and Abijeets testing on translatewiki.net today, I'm fairly confident that this is now fixed.