Page MenuHomePhabricator

[wmf.3-regression] Double click on a word produces an error - [CX] Saving Failed. Error code: internal_api_error_DBQueryError
Closed, DuplicatePublic

Description

  1. Start a new translation to English (I tried de->en, and ca->en). "Use source text" option was used.
  2. Translate one paragraph - then double click on a word (or select a word and double-click on it).

A UI error is displayed.

the Console displays a warning - [CX] Saving Failed. Error code: internal_api_error_DBQueryError .

The error is recorded in logstash e.g. [W@S9@QpAIDsAAJX4GgoAAAAL]:

A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? 
Query: INSERT  INTO `cx_corpora` (cxc_translation_id,cxc_section_id,cxc_origin,cxc_sequence_id,cxc_timestamp,cxc_content) VALUES ('558390','1','source','0','20181108223452','<section rel=\"cx:Section\" id=\"cxSourceSection1\" data-mw-cx-source=\"undefined\"><h2 id=\"204b70a7dc3f37ba330418a935c2a0\"><span data-segmentid=\"10\" class=\"cx-segment\">Hintergrund</span></h2>\n</section>')
Function: ContentTranslation\TranslationStorageManager::create
Error: 1062 Duplicate entry '558390-source-1-20181108223452' for key 'cx_corpora_unique' (10.64.0.108)

#0 /srv/mediawiki/php-1.33.0-wmf.3/includes/libs/rdbms/database/Database.php(1476): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)
#1 /srv/mediawiki/php-1.33.0-wmf.3/includes/libs/rdbms/database/Database.php(1236): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /srv/mediawiki/php-1.33.0-wmf.3/includes/libs/rdbms/database/Database.php(2068): Wikimedia\Rdbms\Database->query(string, string)
#3 /srv/mediawiki/php-1.33.0-wmf.3/extensions/ContentTranslation/includes/TranslationStorageManager.php(64): Wikimedia\Rdbms\Database->insert(string, array, string)
#4 /srv/mediawiki/php-1.33.0-wmf.3/extensions/ContentTranslation/includes/TranslationStorageManager.php(151): ContentTranslation\TranslationStorageManager::create(Wikimedia\Rdbms\DatabaseMysqli, ContentTranslation\TranslationUnit)
#5 /srv/mediawiki/php-1.33.0-wmf.3/includes/libs/rdbms/database/Database.php(3806): Closure$ContentTranslation\TranslationStorageManager::save(Wikimedia\Rdbms\DatabaseMysqli, string)
#6 /srv/mediawiki/php-1.33.0-wmf.3/includes/libs/rdbms/database/DBConnRef.php(49): Wikimedia\Rdbms\Database->doAtomicSection(string, Closure$ContentTranslation\TranslationStorageManager::save;3703)
#7 /srv/mediawiki/php-1.33.0-wmf.3/includes/libs/rdbms/database/DBConnRef.php(538): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#8 /srv/mediawiki/php-1.33.0-wmf.3/extensions/ContentTranslation/includes/TranslationStorageManager.php(154): Wikimedia\Rdbms\DBConnRef->doAtomicSection(string, Closure$ContentTranslation\TranslationStorageManager::save;3703)
#9 /srv/mediawiki/php-1.33.0-wmf.3/extensions/ContentTranslation/api/ApiContentTranslationSave.php(225): ContentTranslation\TranslationStorageManager::save(ContentTranslation\TranslationUnit, boolean)
#10 /srv/mediawiki/php-1.33.0-wmf.3/extensions/ContentTranslation/api/ApiContentTranslationSave.php(72): ApiContentTranslationSave->saveTranslationUnits(array, ContentTranslation\Translation)
#11 /srv/mediawiki/php-1.33.0-wmf.3/includes/api/ApiMain.php(1570): ApiContentTranslationSave->execute()
#12 /srv/mediawiki/php-1.33.0-wmf.3/includes/api/ApiMain.php(531): ApiMain->executeAction()
#13 /srv/mediawiki/php-1.33.0-wmf.3/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling()
#14 /srv/mediawiki/php-1.33.0-wmf.3/api.php(87): ApiMain->execute()
#15 /srv/mediawiki/w/api.php(3): include(string)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 8 2018, 10:58 PM
Etonkovidova renamed this task from [wmf.3-regression] Double click on a word produces an error - [CX] Saving Failed. Error code: internal_api_error_DBQueryError for to [wmf.3-regression] Double click on a word produces an error - [CX] Saving Failed. Error code: internal_api_error_DBQueryError .Nov 8 2018, 10:58 PM