[go: up one dir, main page]

Page MenuHomePhabricator

Wikimedia\Rdbms\DBQueryError: Error 1062: Duplicate entry (…) for key 'it_itemname'
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   Wikimedia\Rdbms\DBQueryError: Error 1062: Duplicate entry 'h-Sujalajus-2017-04-28T09:31:00.000Z' for key 'it_itemname'
Function: MediaWiki\Extension\DiscussionTools\ThreadItemStore::insertThreadItems
Query: INSERT INTO `discuss
exception.trace
from /srv/mediawiki/php-1.39.0-wmf.27/includes/libs/rdbms/database/Database.php(1724)
#0 /srv/mediawiki/php-1.39.0-wmf.27/includes/libs/rdbms/database/Database.php(1708): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /srv/mediawiki/php-1.39.0-wmf.27/includes/libs/rdbms/database/Database.php(1682): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /srv/mediawiki/php-1.39.0-wmf.27/includes/libs/rdbms/database/Database.php(1058): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 /srv/mediawiki/php-1.39.0-wmf.27/includes/libs/rdbms/database/Database.php(1941): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 /srv/mediawiki/php-1.39.0-wmf.27/extensions/DiscussionTools/includes/ThreadItemStore.php(405): Wikimedia\Rdbms\Database->insert(string, array, string)
#5 /srv/mediawiki/php-1.39.0-wmf.27/includes/libs/rdbms/database/Database.php(2856): MediaWiki\Extension\DiscussionTools\ThreadItemStore->MediaWiki\Extension\DiscussionTools\{closure}(Wikimedia\Rdbms\DatabaseMysqli, string)
#6 /srv/mediawiki/php-1.39.0-wmf.27/includes/libs/rdbms/database/DBConnRef.php(103): Wikimedia\Rdbms\Database->doAtomicSection(string, Closure, string)
#7 /srv/mediawiki/php-1.39.0-wmf.27/includes/libs/rdbms/database/DBConnRef.php(664): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#8 /srv/mediawiki/php-1.39.0-wmf.27/extensions/DiscussionTools/includes/ThreadItemStore.php(552): Wikimedia\Rdbms\DBConnRef->doAtomicSection(string, Closure, string)
#9 /srv/mediawiki/php-1.39.0-wmf.27/extensions/DiscussionTools/includes/Hooks/DataUpdatesHooks.php(51): MediaWiki\Extension\DiscussionTools\ThreadItemStore->insertThreadItems(MediaWiki\Revision\RevisionStoreRecord, MediaWiki\Extension\DiscussionTools\ContentThreadItemSet)
#10 /srv/mediawiki/php-1.39.0-wmf.27/includes/deferred/MWCallableUpdate.php(38): MediaWiki\Extension\DiscussionTools\Hooks\DataUpdatesHooks->MediaWiki\Extension\DiscussionTools\Hooks\{closure}()
#11 /srv/mediawiki/php-1.39.0-wmf.27/includes/deferred/DeferredUpdates.php(474): MWCallableUpdate->doUpdate()
#12 /srv/mediawiki/php-1.39.0-wmf.27/includes/deferred/RefreshSecondaryDataUpdate.php(103): DeferredUpdates::attemptUpdate(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti)
#13 /srv/mediawiki/php-1.39.0-wmf.27/includes/deferred/DeferredUpdates.php(474): RefreshSecondaryDataUpdate->doUpdate()
#14 /srv/mediawiki/php-1.39.0-wmf.27/includes/Storage/DerivedPageDataUpdater.php(1801): DeferredUpdates::attemptUpdate(RefreshSecondaryDataUpdate, Wikimedia\Rdbms\LBFactoryMulti)
#15 /srv/mediawiki/php-1.39.0-wmf.27/includes/page/WikiPage.php(2136): MediaWiki\Storage\DerivedPageDataUpdater->doSecondaryDataUpdates(array)
#16 /srv/mediawiki/php-1.39.0-wmf.27/includes/jobqueue/jobs/RefreshLinksJob.php(245): WikiPage->doSecondaryDataUpdates(array)
#17 /srv/mediawiki/php-1.39.0-wmf.27/includes/jobqueue/jobs/RefreshLinksJob.php(154): RefreshLinksJob->runForTitle(Title)
#18 /srv/mediawiki/php-1.39.0-wmf.27/extensions/EventBus/includes/JobExecutor.php(79): RefreshLinksJob->run()
#19 /srv/mediawiki/rpc/RunSingleJob.php(77): MediaWiki\Extension\EventBus\JobExecutor->execute(array)
#20 {main}
Impact
Notes

Details

Request URL
https://jobrunner.discovery.wmnet/rpc/RunSingleJob.php

Event Timeline

matmarex renamed this task from Wikimedia\Rdbms\DBQueryError: Error 1062: Duplicate entry 'h-Sujalajus-2017-04-28T09:31:00.000Z' for key 'it_itemname'Function: MediaWiki\Extension\DiscussionTools\ThreadItemStore::insertThreadItemsQuery: INSERT INTO `discuss to Wikimedia\Rdbms\DBQueryError: Error 1062: Duplicate entry (…) for key 'it_itemname'.Sep 8 2022, 5:34 PM
matmarex moved this task from Backlog to Triaged on the DiscussionTools board.

Change 836875 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/DiscussionTools@master] ThreadItemStore: Move some work in insertThreadItems() outside transactions

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

Change 836875 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] ThreadItemStore: Move some work in insertThreadItems() outside transactions

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