Page MenuHomePhabricator

LogicException: MentorStore::isMenteeActive was called, but GEMentorshipUseIsActiveFlag is false
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   LogicException: MentorStore::isMenteeActive was called, but GEMentorshipUseIsActiveFlag is false
exception.trace
from /srv/mediawiki/php-1.40.0-wmf.8/extensions/GrowthExperiments/includes/Mentorship/Store/DatabaseMentorStore.php(261)
#0 /srv/mediawiki/php-1.40.0-wmf.8/extensions/GrowthExperiments/includes/Mentorship/Store/MentorStore.php(299): GrowthExperiments\Mentorship\Store\DatabaseMentorStore->isMenteeActiveUncached(User)
#1 /srv/mediawiki/php-1.40.0-wmf.8/includes/libs/objectcache/wancache/WANObjectCache.php(1688): GrowthExperiments\Mentorship\Store\MentorStore->GrowthExperiments\Mentorship\Store\{closure}(boolean, integer, array, NULL, array)
#2 /srv/mediawiki/php-1.40.0-wmf.8/includes/libs/objectcache/wancache/WANObjectCache.php(1521): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#3 /srv/mediawiki/php-1.40.0-wmf.8/extensions/GrowthExperiments/includes/Mentorship/Store/MentorStore.php(300): WANObjectCache->getWithSetCallback(string, integer, Closure)
#4 /srv/mediawiki/php-1.40.0-wmf.8/extensions/GrowthExperiments/includes/Mentorship/Store/DatabaseMentorStore.php(284): GrowthExperiments\Mentorship\Store\MentorStore->isMenteeActive(User)
#5 /srv/mediawiki/php-1.40.0-wmf.8/extensions/GrowthExperiments/includes/Mentorship/Hooks/MentorHooks.php(166): GrowthExperiments\Mentorship\Store\DatabaseMentorStore->markMenteeAsActive(User)
#6 /srv/mediawiki/php-1.40.0-wmf.8/includes/deferred/MWCallableUpdate.php(38): GrowthExperiments\Mentorship\Hooks\MentorHooks->GrowthExperiments\Mentorship\Hooks\{closure}()
#7 /srv/mediawiki/php-1.40.0-wmf.8/includes/deferred/DeferredUpdates.php(474): MWCallableUpdate->doUpdate()
#8 /srv/mediawiki/php-1.40.0-wmf.8/includes/deferred/DeferredUpdates.php(399): DeferredUpdates::attemptUpdate(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti)
#9 /srv/mediawiki/php-1.40.0-wmf.8/includes/deferred/DeferredUpdates.php(214): DeferredUpdates::run(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti, Monolog\Logger, BufferingStatsdDataFactory, MediaWiki\JobQueue\JobQueueGroupFactory, string)
#10 /srv/mediawiki/php-1.40.0-wmf.8/includes/deferred/DeferredUpdatesScope.php(267): DeferredUpdates::{closure}(MWCallableUpdate, integer)
#11 /srv/mediawiki/php-1.40.0-wmf.8/includes/deferred/DeferredUpdatesScope.php(196): DeferredUpdatesScope->processStageQueue(integer, integer, Closure)
#12 /srv/mediawiki/php-1.40.0-wmf.8/includes/deferred/DeferredUpdates.php(235): DeferredUpdatesScope->processUpdates(integer, Closure)
#13 /srv/mediawiki/php-1.40.0-wmf.8/includes/MediaWiki.php(1105): DeferredUpdates::doUpdates()
#14 /srv/mediawiki/php-1.40.0-wmf.8/includes/MediaWiki.php(839): MediaWiki->restInPeace()
#15 /srv/mediawiki/php-1.40.0-wmf.8/api.php(125): MediaWiki->doPostOutputShutdown()
#16 /srv/mediawiki/php-1.40.0-wmf.8/api.php(45): wfApiMain()
#17 /srv/mediawiki/w/api.php(3): require(string)
#18 {main}
Impact

None, logspam.

Notes

Event Timeline

Change 853993 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@master] MentorHooks: Add missing check for GEMentorshipUseIsActiveFlag

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

Urbanecm_WMF changed the task status from Open to In Progress.Nov 7 2022, 12:50 PM
Urbanecm_WMF triaged this task as High priority.

Change 853537 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@wmf/1.40.0-wmf.8] MentorHooks: Add missing check for GEMentorshipUseIsActiveFlag

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

Change 853993 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] MentorHooks: Add missing check for GEMentorshipUseIsActiveFlag

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

Change 853537 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@wmf/1.40.0-wmf.8] MentorHooks: Add missing check for GEMentorshipUseIsActiveFlag

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

Mentioned in SAL (#wikimedia-operations) [2022-11-07T14:21:54Z] <urbanecm@deploy1002> Started scap: Backport for [[gerrit:853537|MentorHooks: Add missing check for GEMentorshipUseIsActiveFlag (T322538)]], [[gerrit:853955|Rename QuitMentorship to ReassignMentees (T321382)]], [[gerrit:853956|ReassignMentees: Pass the actual performer to ChangeMentor (T321382)]], [[gerrit:853957|ManageMentorsRemoveMentor: Reassign mentees to a different mentor (T321382)]]

Mentioned in SAL (#wikimedia-operations) [2022-11-07T14:26:40Z] <urbanecm@deploy1002> urbanecm and urbanecm: Backport for [[gerrit:853537|MentorHooks: Add missing check for GEMentorshipUseIsActiveFlag (T322538)]], [[gerrit:853955|Rename QuitMentorship to ReassignMentees (T321382)]], [[gerrit:853956|ReassignMentees: Pass the actual performer to ChangeMentor (T321382)]], [[gerrit:853957|ManageMentorsRemoveMentor: Reassign mentees to a different mentor (T321382)]] synced to the testse

Mentioned in SAL (#wikimedia-operations) [2022-11-07T14:36:51Z] <urbanecm@deploy1002> Finished scap: Backport for [[gerrit:853537|MentorHooks: Add missing check for GEMentorshipUseIsActiveFlag (T322538)]], [[gerrit:853955|Rename QuitMentorship to ReassignMentees (T321382)]], [[gerrit:853956|ReassignMentees: Pass the actual performer to ChangeMentor (T321382)]], [[gerrit:853957|ManageMentorsRemoveMentor: Reassign mentees to a different mentor (T321382)]] (duration: 14m 56s)

Urbanecm_WMF changed the task status from In Progress to Open.Nov 16 2022, 11:02 AM