Page MenuHomePhabricator

Uncaught DBUnexpectedError: Foreign domain connections are still in use (globalblocking).
Closed, ResolvedPublic

Description

PHP Fatal error:  Uncaught DBUnexpectedError: Foreign domain connections are still in use (globalblocking). in /var/www/wiki/mediawiki/core/includes/libs/rdbms/loadbalancer/LoadBalancer.php:1606
Stack trace:
#0 /var/www/wiki/mediawiki/core/includes/libs/rdbms/lbfactory/LBFactory.php(532): Wikimedia\Rdbms\LoadBalancer->setDomainPrefix('mw_')
#1 [internal function]: Wikimedia\Rdbms\LBFactory->Wikimedia\Rdbms\{closure}(Object(Wikimedia\Rdbms\LoadBalancer))
#2 /var/www/wiki/mediawiki/core/includes/libs/rdbms/lbfactory/LBFactorySimple.php(149): call_user_func_array(Object(Closure), Array)
#3 /var/www/wiki/mediawiki/core/includes/libs/rdbms/lbfactory/LBFactory.php(533): Wikimedia\Rdbms\LBFactorySimple->forEachLB(Object(Closure))
#4 /var/www/wiki/mediawiki/core/includes/db/CloneDatabase.php(140): Wikimedia\Rdbms\LBFactory->setDomainPrefix('mw_')
#5 /var/www/wiki/mediawiki/core/tests/phpunit/MediaWikiTestCase.php(1080): CloneDatabase::changePrefix('mw_')
#6 /var/www/wiki/mediawiki/core/tests/phpunit/bootstrap.php(20): MediaWikiTestCas in /var/www/wiki/mediawiki/core/includes/libs/rdbms/loadbalancer/LoadBalancer.php on line 1606
PHP Stack trace:
PHP   1. {main}() /var/www/wiki/mediawiki/core/tests/phpunit/phpunit.php:0
PHP   2. require() /var/www/wiki/mediawiki/core/tests/phpunit/phpunit.php:163
PHP   3. PHPUnitMaintClass->execute() /var/www/wiki/mediawiki/core/maintenance/doMaintenance.php:111
PHP   4. PHPUnit_TextUI_Command::main() /var/www/wiki/mediawiki/core/tests/phpunit/phpunit.php:133
PHP   5. PHPUnit_TextUI_Command->run() phar:///var/www/wiki/mediawiki/phpunit-old.phar/phpunit/TextUI/Command.php:100

Fatal error: Uncaught DBUnexpectedError: Foreign domain connections are still in use (globalblocking). in /var/www/wiki/mediawiki/core/includes/libs/rdbms/loadbalancer/LoadBalancer.php on line 1606

Call Stack:
    0.0016     374688   1. {main}() /var/www/wiki/mediawiki/core/tests/phpunit/phpunit.php:0
    0.0142     632176   2. require('/var/www/wiki/mediawiki/core/maintenance/doMaintenance.php') /var/www/wiki/mediawiki/core/tests/phpunit/phpunit.php:163
    1.4532   25338160   3. PHPUnitMaintClass->execute() /var/www/wiki/mediawiki/core/maintenance/doMaintenance.php:111
    1.4645   25590352   4. PHPUnit_TextUI_Command::main() /var/www/wiki/mediawiki/core/tests/phpunit/phpunit.php:133
    1.4645   25590464   5. PHPUnit_TextUI_Command->run() phar:///var/www/wiki/mediawiki/phpunit-old.phar/phpunit/TextUI/Command.php:100

DBUnexpectedError: Foreign domain connections are still in use (globalblocking). in /var/www/wiki/mediawiki/core/includes/libs/rdbms/loadbalancer/LoadBalancer.php on line 1606

Call Stack:
    0.0016     374688   1. {main}() /var/www/wiki/mediawiki/core/tests/phpunit/phpunit.php:0
    0.0142     632176   2. require('/var/www/wiki/mediawiki/core/maintenance/doMaintenance.php') /var/www/wiki/mediawiki/core/tests/phpunit/phpunit.php:163
    1.4532   25338160   3. PHPUnitMaintClass->execute() /var/www/wiki/mediawiki/core/maintenance/doMaintenance.php:111
    1.4645   25590352   4. PHPUnit_TextUI_Command::main() /var/www/wiki/mediawiki/core/tests/phpunit/phpunit.php:133
    1.4645   25590464   5. PHPUnit_TextUI_Command->run() phar:///var/www/wiki/mediawiki/phpunit-old.phar/phpunit/TextUI/Command.php:100
  824.7620  941417328   6. MediaWikiPHPUnitBootstrap->__destruct() /var/www/wiki/mediawiki/core/tests/phpunit/bootstrap.php:0
  824.7629  941417328   7. MediaWikiTestCase::teardownTestDB() /var/www/wiki/mediawiki/core/tests/phpunit/bootstrap.php:20
  824.8427  941074312   8. CloneDatabase::changePrefix() /var/www/wiki/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:1080
  824.8427  941074312   9. Wikimedia\Rdbms\LBFactory->setDomainPrefix() /var/www/wiki/mediawiki/core/includes/db/CloneDatabase.php:140
  824.8437  941075008  10. Wikimedia\Rdbms\LBFactorySimple->forEachLB() /var/www/wiki/mediawiki/core/includes/libs/rdbms/lbfactory/LBFactory.php:533
  824.8440  941075440  11. call_user_func_array:{/var/www/wiki/mediawiki/core/includes/libs/rdbms/lbfactory/LBFactorySimple.php:149}() /var/www/wiki/mediawiki/core/includes/libs/rdbms/lbfactory/LBFactorySimple.php:149
  824.8450  941075456  12. Wikimedia\Rdbms\LBFactory->Wikimedia\Rdbms\{closure}() /var/www/wiki/mediawiki/core/includes/libs/rdbms/lbfactory/LBFactorySimple.php:149
  824.8454  941075456  13. Wikimedia\Rdbms\LoadBalancer->setDomainPrefix() /var/www/wiki/mediawiki/core/includes/libs/rdbms/lbfactory/LBFactory.php:532

Event Timeline

Reedy created this task.Apr 3 2017, 12:49 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 3 2017, 12:49 AM

Change 347013 had a related patch set uploaded (by Aaron Schulz):
[mediawiki/extensions/GlobalBlocking@master] Use getConnectionRef() to avoid leaking DB handles

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

Change 347013 merged by jenkins-bot:
[mediawiki/extensions/GlobalBlocking@master] Use getConnectionRef() to avoid leaking DB handles

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

aaron closed this task as Resolved.Apr 11 2017, 11:09 PM
aaron claimed this task.