Last modified: 2013-11-14 12:22:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59049, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57049 - Unsafe statements being used when using MySQL replication
Unsafe statements being used when using MySQL replication
Status: UNCONFIRMED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
master
All All
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-14 11:16 UTC by Maarten
Modified: 2013-11-14 12:22 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Maarten 2013-11-14 11:16:53 UTC
When using replication on a MediaWiki database, the following warnings show up in the MySQL log when using the Translate extension:

[Warning] Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction. Statement: INSERT /* DatabaseTTMServer::insertSource */  INTO `translate_tmf` (tmf_sid,tmf_text) VALUES ('421','search data')

This problem is caused by the fact that the translate_tmf is using the MyISAM storage engine. All MediaWiki tables are using InnoDB except for this translate_tmf and the searchindex table, as InnoDB lacks the FULLTEXT index support. See http://www.mediawiki.org/wiki/Manual_talk:Searchindex_table.

Transactions to the translate_tmf table should be separated from other transactions to the database to prevent unsafe statements from happening when using replication.
Comment 1 Siebrand Mazeland 2013-11-14 12:14:08 UTC
Hi Maarten. We're not planning on fixing this. If you want a scalable translation memory with the translate extension, please consider using the Solr backend.

Patches are welcome and will be reviewed.
Comment 2 Siebrand Mazeland 2013-11-14 12:22:16 UTC
Additionally, starting with MySQL 5.6.4, there is support for full text search in InnoDB.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links