https://logstash.wikimedia.org/goto/0f4ac68ada7dbdf16b00251e620ff8c2
Error
- service.version: 1.41.0-wmf.17
- trace.id: a5afc7f2-fe56-4884-8444-871610d61a23
- Find trace.id in Logstash
[{reqId}] {exception_url} Wikimedia\Rdbms\DBQueryError: Error 1062: Duplicate entry '1-12356970' for key 'itp_items_id_page_id' Function: MediaWiki\Extension\DiscussionTools\ThreadItemStore::insertThreadItems Query: INSERT INTO `discussiontools_item_pag
from /srv/mediawiki/php-1.41.0-wmf.17/includes/libs/rdbms/database/Database.php(1300) #0 /srv/mediawiki/php-1.41.0-wmf.17/includes/libs/rdbms/database/Database.php(1284): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string) #1 /srv/mediawiki/php-1.41.0-wmf.17/includes/libs/rdbms/database/Database.php(1258): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string) #2 /srv/mediawiki/php-1.41.0-wmf.17/includes/libs/rdbms/database/Database.php(743): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) #3 /srv/mediawiki/php-1.41.0-wmf.17/includes/libs/rdbms/database/Database.php(1564): Wikimedia\Rdbms\Database->query(Wikimedia\Rdbms\Query, string) #4 /srv/mediawiki/php-1.41.0-wmf.17/extensions/DiscussionTools/includes/ThreadItemStore.php(469): Wikimedia\Rdbms\Database->insert(string, array, string) #5 /srv/mediawiki/php-1.41.0-wmf.17/includes/libs/rdbms/database/Database.php(2444): MediaWiki\Extension\DiscussionTools\ThreadItemStore->MediaWiki\Extension\DiscussionTools\{closure}(Wikimedia\Rdbms\DatabaseMysqli, string) #6 /srv/mediawiki/php-1.41.0-wmf.17/includes/libs/rdbms/database/DBConnRef.php(119): Wikimedia\Rdbms\Database->doAtomicSection(string, Closure, string) #7 /srv/mediawiki/php-1.41.0-wmf.17/includes/libs/rdbms/database/DBConnRef.php(658): Wikimedia\Rdbms\DBConnRef->__call(string, array) #8 /srv/mediawiki/php-1.41.0-wmf.17/extensions/DiscussionTools/includes/ThreadItemStore.php(581): Wikimedia\Rdbms\DBConnRef->doAtomicSection(string, Closure, string) #9 /srv/mediawiki/php-1.41.0-wmf.17/extensions/DiscussionTools/includes/Hooks/DataUpdatesHooks.php(49): MediaWiki\Extension\DiscussionTools\ThreadItemStore->insertThreadItems(MediaWiki\Revision\MutableRevisionRecord, MediaWiki\Extension\DiscussionTools\ContentThreadItemSet) #10 /srv/mediawiki/php-1.41.0-wmf.17/includes/deferred/MWCallableUpdate.php(38): MediaWiki\Extension\DiscussionTools\Hooks\DataUpdatesHooks->MediaWiki\Extension\DiscussionTools\Hooks\{closure}() #11 /srv/mediawiki/php-1.41.0-wmf.17/includes/deferred/DeferredUpdatesManager.php(506): MWCallableUpdate->doUpdate() #12 /srv/mediawiki/php-1.41.0-wmf.17/includes/deferred/DeferredUpdates.php(277): MediaWiki\Deferred\DeferredUpdatesManager->attemptUpdate(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti) #13 /srv/mediawiki/php-1.41.0-wmf.17/includes/deferred/RefreshSecondaryDataUpdate.php(103): DeferredUpdates::attemptUpdate(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti) #14 /srv/mediawiki/php-1.41.0-wmf.17/includes/deferred/DeferredUpdatesManager.php(506): RefreshSecondaryDataUpdate->doUpdate() #15 /srv/mediawiki/php-1.41.0-wmf.17/includes/deferred/DeferredUpdatesManager.php(432): MediaWiki\Deferred\DeferredUpdatesManager->attemptUpdate(RefreshSecondaryDataUpdate, Wikimedia\Rdbms\LBFactoryMulti) #16 /srv/mediawiki/php-1.41.0-wmf.17/includes/deferred/DeferredUpdatesManager.php(270): MediaWiki\Deferred\DeferredUpdatesManager->run(RefreshSecondaryDataUpdate, string) #17 /srv/mediawiki/php-1.41.0-wmf.17/includes/deferred/DeferredUpdatesScope.php(264): MediaWiki\Deferred\DeferredUpdatesManager->MediaWiki\Deferred\{closure}(RefreshSecondaryDataUpdate, integer) #18 /srv/mediawiki/php-1.41.0-wmf.17/includes/deferred/DeferredUpdatesScope.php(196): DeferredUpdatesScope->processStageQueue(integer, integer, Closure) #19 /srv/mediawiki/php-1.41.0-wmf.17/includes/deferred/DeferredUpdatesManager.php(273): DeferredUpdatesScope->processUpdates(integer, Closure) #20 /srv/mediawiki/php-1.41.0-wmf.17/includes/deferred/DeferredUpdatesScope.php(267): MediaWiki\Deferred\DeferredUpdatesManager->MediaWiki\Deferred\{closure}(AtomicSectionUpdate, integer) #21 /srv/mediawiki/php-1.41.0-wmf.17/includes/deferred/DeferredUpdatesScope.php(196): DeferredUpdatesScope->processStageQueue(integer, integer, Closure) #22 /srv/mediawiki/php-1.41.0-wmf.17/includes/deferred/DeferredUpdatesManager.php(278): DeferredUpdatesScope->processUpdates(integer, Closure) #23 /srv/mediawiki/php-1.41.0-wmf.17/includes/deferred/DeferredUpdates.php(159): MediaWiki\Deferred\DeferredUpdatesManager->doUpdates(integer) #24 /srv/mediawiki/php-1.41.0-wmf.17/extensions/EventBus/includes/JobExecutor.php(104): DeferredUpdates::doUpdates() #25 /srv/mediawiki/rpc/RunSingleJob.php(77): MediaWiki\Extension\EventBus\JobExecutor->execute(array) #26 {main}
Impact
Notes
This is on the discussiontools_item_pages table, hence a new task in addition to:
- T323080: "Duplicate entry 'XXX-YYY' for key 'itr_itemid_id_revision_id'" in "INSERT INTO `discussiontools_item_revisions`"
- T323079: "Duplicate entry '0-XXX' for key 'itr_itemid_id_revision_id'" in "INSERT INTO `discussiontools_item_revisions`"
- T323077: "Lock wait timeout exceeded" / "Deadlock found when trying to get lock" in "INSERT INTO `discussiontools_items` / `discussiontools_item_ids`"