[MDEV-22158] Document Galera Strict DDL Created: 2020-04-06  Updated: 2020-11-02  Resolved: 2020-06-08

Status: Closed
Project: MariaDB Server
Component/s: Documentation, Galera
Fix Version/s: N/A

Type: Task Priority: Major
Reporter: Jan Lindström (Inactive) Assignee: Ian Gilfillan
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-20051 Add new mode to wsrep_OSU_method in w... Closed

 Description   

Introduced a new wsrep_strict_ddl configuration variable in which
Galera checks storage engine of the effected table. If table is not
InnoDB (only storage engine currently fully supporting Galera
replication) DDL-statement will return error code:

ER_GALERA_REPLICATION_NOT_SUPPORTED
eng "DDL-statement is forbidden as table storage engine does not support Galera replication"

However, when wsrep_replicate_myisam=ON we allow DDL-statements to
MyISAM tables. If effected table is allowed storage engine Galera
will run normal TOI.

This new setting should be for now set globally on all
nodes in a cluster. When this setting is set following DDL-clauses
accessing tables not supporting Galera replication are refused:

  • CREATE TABLE (e.g. CREATE TABLE t1(a int) engine=Aria
  • ALTER TABLE
  • TRUNCATE TABLE
  • CREATE VIEW
  • CREATE TRIGGER
  • CREATE INDEX
  • DROP INDEX
  • RENAME TABLE
  • DROP TABLE

Statements on PROCEDURE, EVENT, FUNCTION are allowed as effected
tables are known only at execution. Furthermore, USER, ROLE, SERVER,
DATABASE statements are also allowed as they do not really have
effected table.

Release: 10.5.1CS


Generated at Thu Feb 08 09:12:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.