[MDEV-7322] Option to allow setting the binlog_format with Galera Created: 2014-12-15  Updated: 2017-04-27  Resolved: 2015-01-28

Status: Closed
Project: MariaDB Server
Component/s: wsrep
Fix Version/s: 5.5.42-galera, 10.0.16-galera

Type: Task Priority: Minor
Reporter: Joffrey MICHAIE (Inactive) Assignee: Nirbhay Choubey (Inactive)
Resolution: Fixed Votes: 1
Labels: binlog, galera

Issue Links:
Relates
relates to MDEV-6924 Server crashed on CREATE TABLE AS SELECT Closed
relates to MDEV-7321 Unable to sync slave to master on Gal... Closed

 Description   

Hi,

I know this is like a bit going backwards but to check consistency between:

  • nodes of (same) galera cluster
  • async slave of galera cluster

We need to set the binlog_format to STATEMENT (using a tool such as Percona pt-table-checksum by example).
This is also valid for other tools (such as pt-table-sync).

In https://mariadb.atlassian.net/browse/MDEV-6924 we have completely disallowed the change of the binlog_format, when wsrep_on = ON.

You can use a workaround, setting wsrep_on = off and run the pt-table-checksum, but this works only for asynchronous slaves. Also, this is dangerous if one user drops the created table, without setting wsrep_on = off (I need to test this, blog post in progress)

Rogue applications (or users, or bugs) may compromise data consistency between nodes of the same cluster, or between master (cluster/standalone) and async slaves(cluster/standalone) and this is the only way I see today to check the consistency.

Could this be set as a parameter, such as wsrep_allow_unsafe_binlog_format ?

Changing the binlog_format is still allowed in latest PXC, and it seems we are taking our own road here.

Joffrey



 Comments   
Comment by Joffrey MICHAIE (Inactive) [ 2015-01-26 ]

Hi Nirbhay,

as discussed together, I think we should re-enable ASAP the possibility to set the binlog_format to something else than ROW at the session level.

Thanks,
Joffrey

Comment by Nirbhay Choubey (Inactive) [ 2015-01-27 ]

http://lists.askmonty.org/pipermail/commits/2015-January/007337.html

Comment by Jan Lindström (Inactive) [ 2015-01-27 ]

Ok to push if no problems with regression testing and RQG.

Comment by Nirbhay Choubey (Inactive) [ 2015-01-28 ]

http://bazaar.launchpad.net/~maria-captains/maria/maria-5.5-galera/revision/3558
http://bazaar.launchpad.net/~maria-captains/maria/maria-10.0-galera/revision/3920

Generated at Thu Feb 08 07:18:42 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.