Error
- mwversion: 1.38.0-wmf.2
- reqId: fdab3d28-fe04-4502-8b13-17b5c9f62f6d
- Find reqId in Logstash
- Find normalized_message in Logstash
[{reqId}] {exception_url} Wikimedia\Rdbms\DBQueryError: Error 1062: Duplicate entry '1007398126' for key 'PRIMARY' (db1163) Function: MediaWiki\Revision\RevisionStore::insertRevisionRowOn Query: INSERT INTO `revision` (rev_page,rev_parent_id,rev_minor_e
from /srv/mediawiki/php-1.38.0-wmf.2/includes/libs/rdbms/database/Database.php(1809) #0 /srv/mediawiki/php-1.38.0-wmf.2/includes/libs/rdbms/database/Database.php(1793): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string) #1 /srv/mediawiki/php-1.38.0-wmf.2/includes/libs/rdbms/database/Database.php(1768): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string) #2 /srv/mediawiki/php-1.38.0-wmf.2/includes/libs/rdbms/database/Database.php(1327): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) #3 /srv/mediawiki/php-1.38.0-wmf.2/includes/libs/rdbms/database/Database.php(2540): Wikimedia\Rdbms\Database->query(string, string, integer) #4 /srv/mediawiki/php-1.38.0-wmf.2/includes/libs/rdbms/database/Database.php(2520): Wikimedia\Rdbms\Database->doInsert(string, array, string) #5 /srv/mediawiki/php-1.38.0-wmf.2/includes/Revision/RevisionStore.php(787): Wikimedia\Rdbms\Database->insert(string, array, string) #6 /srv/mediawiki/php-1.38.0-wmf.2/includes/Revision/RevisionStore.php(638): MediaWiki\Revision\RevisionStore->insertRevisionRowOn(Wikimedia\Rdbms\DatabaseMysqli, MediaWiki\Revision\RevisionArchiveRecord, integer) #7 /srv/mediawiki/php-1.38.0-wmf.2/includes/Revision/RevisionStore.php(492): MediaWiki\Revision\RevisionStore->insertRevisionInternal(MediaWiki\Revision\RevisionArchiveRecord, Wikimedia\Rdbms\DatabaseMysqli, MediaWiki\User\UserIdentityValue, CommentStoreComment, WikiPage, integer, integer) #8 /srv/mediawiki/php-1.38.0-wmf.2/includes/libs/rdbms/database/Database.php(4782): MediaWiki\Revision\RevisionStore->MediaWiki\Revision\{closure}(Wikimedia\Rdbms\DatabaseMysqli, string) #9 /srv/mediawiki/php-1.38.0-wmf.2/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->doAtomicSection(string, Closure) #10 /srv/mediawiki/php-1.38.0-wmf.2/includes/libs/rdbms/database/DBConnRef.php(668): Wikimedia\Rdbms\DBConnRef->__call(string, array) #11 /srv/mediawiki/php-1.38.0-wmf.2/includes/Revision/RevisionStore.php(494): Wikimedia\Rdbms\DBConnRef->doAtomicSection(string, Closure) #12 /srv/mediawiki/php-1.38.0-wmf.2/includes/page/UndeletePage.php(398): MediaWiki\Revision\RevisionStore->insertRevisionOn(MediaWiki\Revision\RevisionArchiveRecord, Wikimedia\Rdbms\DBConnRef) #13 /srv/mediawiki/php-1.38.0-wmf.2/includes/page/UndeletePage.php(155): MediaWiki\Page\UndeletePage->undeleteRevisions(array, boolean, string) #14 /srv/mediawiki/php-1.38.0-wmf.2/includes/page/PageArchive.php(414): MediaWiki\Page\UndeletePage->undelete(array, string, array, boolean, NULL) #15 /srv/mediawiki/php-1.38.0-wmf.2/includes/specials/SpecialUndelete.php(1358): PageArchive->undeleteAsUser(array, User, string, array, boolean) #16 /srv/mediawiki/php-1.38.0-wmf.2/includes/specials/SpecialUndelete.php(324): SpecialUndelete->undelete() #17 /srv/mediawiki/php-1.38.0-wmf.2/includes/specialpage/SpecialPage.php(647): SpecialUndelete->execute(NULL) #18 /srv/mediawiki/php-1.38.0-wmf.2/includes/specialpage/SpecialPageFactory.php(1371): SpecialPage->run(NULL) #19 /srv/mediawiki/php-1.38.0-wmf.2/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext) #20 /srv/mediawiki/php-1.38.0-wmf.2/includes/MediaWiki.php(925): MediaWiki->performRequest() #21 /srv/mediawiki/php-1.38.0-wmf.2/includes/MediaWiki.php(559): MediaWiki->main() #22 /srv/mediawiki/php-1.38.0-wmf.2/index.php(53): MediaWiki->run() #23 /srv/mediawiki/php-1.38.0-wmf.2/index.php(46): wfIndexMain() #24 /srv/mediawiki/w/index.php(3): require(string) #25 {main}
Impact
A single instance of this in 1.38.0-wmf.2.
Notes
Feels like a duplicate action possibly taken either by the same user or by multiple users.
Should be caught and presented to user in a useful fashion, assuming that's the case.