Page MenuHomePhabricator

No enabled connection [Called from CirrusSearch\ElasticsearchIntermediary::failure in /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php at line 97]
Open, MediumPublic

Description

Shouldn't be bug 67605 because here I had actually disabled CirrusSearch, see bug 67295; but its absence made other tests fail, it seems.

  1. SolrTTMServerTest::testSearchableTTMServer

Search backend error during sending 1 documents to the content index after 5867. Operation timed out [Called from CirrusSearch\ElasticsearchIntermediary::failure in /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php at line 97]

/srv/vagrant/mediawiki/includes/debug/MWDebug.php:303
/srv/vagrant/mediawiki/includes/debug/MWDebug.php:157
/srv/vagrant/mediawiki/includes/GlobalFunctions.php:1202
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php:97
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:277
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:206
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:67
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Job/LinksUpdate.php:48
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Job/Job.php:55
/srv/vagrant/mediawiki/extensions/Translate/tests/phpunit/SolrTTMServerTest.php:176
/srv/vagrant/mediawiki/extensions/Translate/tests/phpunit/SolrTTMServerTest.php:36
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

  1. SolrTTMServerTest::testMediaWikiTestCaseParentSetupCalled

Search backend error during sending 1 documents to the content index after 1. No enabled connection [Called from CirrusSearch\ElasticsearchIntermediary::failure in /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php at line 97]

/srv/vagrant/mediawiki/includes/debug/MWDebug.php:303
/srv/vagrant/mediawiki/includes/debug/MWDebug.php:157
/srv/vagrant/mediawiki/includes/GlobalFunctions.php:1202
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php:97
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:277
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:206
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:67
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Job/LinksUpdate.php:48
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Job/Job.php:55
/srv/vagrant/mediawiki/extensions/Translate/tests/phpunit/SolrTTMServerTest.php:176
/srv/vagrant/mediawiki/extensions/Translate/tests/phpunit/SolrTTMServerTest.php:36
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

  1. MessageGroupStatesUpdaterJobTest::testHooks

Search backend error during sending 1 documents to the content index after 78. No enabled connection [Called from CirrusSearch\ElasticsearchIntermediary::failure in /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php at line 97]

/srv/vagrant/mediawiki/includes/debug/MWDebug.php:303
/srv/vagrant/mediawiki/includes/debug/MWDebug.php:157
/srv/vagrant/mediawiki/includes/GlobalFunctions.php:1202
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php:97
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:277
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:206
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:67
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Job/LinksUpdate.php:48
/srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Job/Job.php:55
/srv/vagrant/mediawiki/extensions/Translate/tests/phpunit/MessageGroupStatesUpdaterJobTest.php:180
/srv/vagrant/mediawiki/extensions/Translate/tests/phpunit/MessageGroupStatesUpdaterJobTest.php:125
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160


Version: unspecified
Severity: normal

Details

Reference
bz68636

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:38 AM
bzimport set Reference to bz68636.
bzimport added a subscriber: Unknown Object (MLST).

Somewhere I wrote that there should be a way for external services like TTMServer or CirrusSearch disable themselves or provide testing instance while running unit tests.

We can work around this issue by setting $wgTranslateTranslationServices to empty array in this test, but there are likely other tests where we accidentally hit the production ttmserver index.

Change 156272 had a related patch set uploaded by Nemo bis:
Consistently declare $wgTranslateTranslationServices empty in tests

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

Change 156272 abandoned by Nemo bis:
Consistently declare $wgTranslateTranslationServices empty in tests

Reason:
No path provided for amending

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

Nikerabbit lowered the priority of this task from High to Medium.Sep 9 2015, 7:01 AM

Somewhere I wrote that there should be a way for external services like TTMServer or CirrusSearch disable themselves or provide testing instance while running unit tests.

That's now being discussed in T267928: Configuration Modes