This error is frequently seen in ContentTranslation log at logstash/kibana:
- Wiki: php-1.35.0-wmf.37
- Referrer (for this example): https://es.wikipedia.org/w/index.php?title=Especial:Traducci%C3%B3n_de_contenidos&page=International+Science+Council&from=en&to=es&targettitle=Consejo+Cient%C3%ADfico+Internacional
- Impact: Some parts of translation drafts are not getting saved (but retry mechanism should take care of that)
Log
ContentTranslation\TranslationStorageManager::save 10.64.32.11 1213 Deadlock found when trying to get lock; try restarting transaction (10.64.32.11) SELECT * FROM `cx_corpora` WHERE cxc_translation_id = 958734 AND cxc_section_id = '16' AND cxc_origin = 'user' ORDER BY cxc_timestamp DESC LIMIT 1 FOR UPDATE
#0 /srv/mediawiki/php-1.35.0-wmf.37/includes/libs/rdbms/database/Database.php(1640): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string) #1 /srv/mediawiki/php-1.35.0-wmf.37/includes/libs/rdbms/database/Database.php(1215): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) #2 /srv/mediawiki/php-1.35.0-wmf.37/includes/libs/rdbms/database/Database.php(1879): Wikimedia\Rdbms\Database->query(string, string, integer) #3 /srv/mediawiki/php-1.35.0-wmf.37/includes/libs/rdbms/database/Database.php(1975): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array) #4 /srv/mediawiki/php-1.35.0-wmf.37/extensions/ContentTranslation/includes/TranslationStorageManager.php(160): Wikimedia\Rdbms\Database->selectRow(string, string, array, string, array) #5 /srv/mediawiki/php-1.35.0-wmf.37/extensions/ContentTranslation/includes/TranslationStorageManager.php(145): ContentTranslation\TranslationStorageManager::doFind(Wikimedia\Rdbms\DatabaseMysqli, array, array, string) #6 /srv/mediawiki/php-1.35.0-wmf.37/includes/libs/rdbms/database/Database.php(4264): ContentTranslation\TranslationStorageManager::ContentTranslation\{closure}(Wikimedia\Rdbms\DatabaseMysqli, string) #7 /srv/mediawiki/php-1.35.0-wmf.37/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->doAtomicSection(string, Closure) #8 /srv/mediawiki/php-1.35.0-wmf.37/includes/libs/rdbms/database/DBConnRef.php(641): Wikimedia\Rdbms\DBConnRef->__call(string, array) #9 /srv/mediawiki/php-1.35.0-wmf.37/extensions/ContentTranslation/includes/TranslationStorageManager.php(153): Wikimedia\Rdbms\DBConnRef->doAtomicSection(string, Closure) #10 /srv/mediawiki/php-1.35.0-wmf.37/extensions/ContentTranslation/api/ApiContentTranslationSave.php(225): ContentTranslation\TranslationStorageManager::save(ContentTranslation\TranslationUnit, boolean) #11 /srv/mediawiki/php-1.35.0-wmf.37/extensions/ContentTranslation/api/ApiContentTranslationSave.php(72): ApiContentTranslationSave->saveTranslationUnits(array, ContentTranslation\Translation) #12 /srv/mediawiki/php-1.35.0-wmf.37/includes/api/ApiMain.php(1585): ApiContentTranslationSave->execute() #13 /srv/mediawiki/php-1.35.0-wmf.37/includes/api/ApiMain.php(525): ApiMain->executeAction() #14 /srv/mediawiki/php-1.35.0-wmf.37/includes/api/ApiMain.php(496): ApiMain->executeActionWithErrorHandling() #15 /srv/mediawiki/php-1.35.0-wmf.37/api.php(84): ApiMain->execute() #16 /srv/mediawiki/w/api.php(3): require(string) #17 {main}