Page MenuHomePhabricator

JobRunner::run called with an active transaction round
Closed, ResolvedPublic

Description

On my local dev wiki, index.php hits produce

2020-03-17 17:10:48 [4ad77ff4e377b1e0af7c0653] exception ERROR: [4ad77ff4e377b1e0af7c0653] /wiki/Test   LogicException from line 202 of /usr/local/src/MediaWiki/core/includes/jobqueue/JobRunner.php: JobRunner::run called with an active transaction round. {"exception_id":"4ad77ff4e377b1e0af7c0653","exception_url":"/wiki/Test","caught_by":"other"}
[Exception LogicException] (/usr/local/src/MediaWiki/core/includes/jobqueue/JobRunner.php:202) JobRunner::run called with an active transaction round.
  #0 /usr/local/src/MediaWiki/core/includes/MediaWiki.php(1151): JobRunner->run(array)
  #1 /usr/local/src/MediaWiki/core/includes/MediaWiki.php(629): MediaWiki->triggerSyncJobs(integer)
  #2 /usr/local/src/MediaWiki/core/includes/deferred/MWCallableUpdate.php(38): MediaWiki->{closure}()
  #3 /usr/local/src/MediaWiki/core/includes/deferred/DeferredUpdates.php(417): MWCallableUpdate->doUpdate()
  #4 /usr/local/src/MediaWiki/core/includes/deferred/DeferredUpdates.php(296): DeferredUpdates::attemptUpdate(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti)
  #5 /usr/local/src/MediaWiki/core/includes/deferred/DeferredUpdates.php(233): DeferredUpdates::run(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti, Monolog\Logger, BufferingStatsdDataFactory, string)
  #6 /usr/local/src/MediaWiki/core/includes/deferred/DeferredUpdates.php(150): DeferredUpdates::handleUpdateQueue(array, string, integer)
  #7 /usr/local/src/MediaWiki/core/includes/MediaWiki.php(1059): DeferredUpdates::doUpdates(string)
  #8 /usr/local/src/MediaWiki/core/includes/MediaWiki.php(839): MediaWiki->restInPeace()
  #9 /usr/local/src/MediaWiki/core/includes/MediaWiki.php(859): MediaWiki->{closure}()
  #10 /usr/local/src/MediaWiki/core/includes/MediaWiki.php(574): MediaWiki->doPostOutputShutdown()
  #11 /usr/local/src/MediaWiki/core/index.php(47): MediaWiki->run()
  #12 {main}

This doesn't occur on Wikimedia sites because it requires $wgJobRunRate > 0.

Event Timeline

Change 581074 had a related patch set uploaded (by Anomie; owner: Anomie):
[mediawiki/core@master] Fix post-send job running

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

Change 581074 merged by jenkins-bot:
[mediawiki/core@master] Fix post-send job running

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

@AMooney, I understand that Brad resolved this ticket. Should it be in the Done column instead of the Waiting for Review one?