Hi,
we have a problem using enforce_storage_engine variable set to InnoDB.
We have three servers in cluster (multi masters).
When we issue create table with engine=MyISAM the engine is correctly enforced to InnoDB only on the node we are connected to. On the other nodes the replicated table is created as MyISAM.
In our servers configuration (the same on all nodes) we have:
enforce_storage_engine='InnoDB'
|
wsrep_on=ON
|
sql_mode=''
|
Some console output follows.
On the first node we have:
MariaDB [galera_test]> SHOW VARIABLES WHERE Variable_name='enforce_storage_engine' OR Variable_name='sql_mode';
|
+------------------------+--------+
|
| Variable_name | Value |
|
+------------------------+--------+
|
| enforce_storage_engine | InnoDB |
|
| sql_mode | |
|
+------------------------+--------+
|
2 rows in set (0.00 sec)
|
|
MariaDB [galera_test]> CREATE TABLE table_1(id INTEGER) ENGINE=InnoDB;
|
Query OK, 0 rows affected (0.01 sec)
|
|
MariaDB [galera_test]> CREATE TABLE table_2(id INTEGER) ENGINE=MyISAM;
|
Query OK, 0 rows affected, 1 warning (0.00 sec)
|
|
MariaDB [galera_test]> SHOW WARNINGS;
|
+-------+------+-------------------------------------------------+
|
| Level | Code | Message |
|
+-------+------+-------------------------------------------------+
|
| Note | 1266 | Using storage engine InnoDB for table 'table_2' |
|
+-------+------+-------------------------------------------------+
|
1 row in set (0.00 sec)
|
|
MariaDB [galera_test]> SELECT TABLE_NAME, ENGINE FROM information_schema.TABLES where TABLE_SCHEMA = 'galera_test';
|
+------------+--------+
|
| TABLE_NAME | ENGINE |
|
+------------+--------+
|
| table_1 | InnoDB |
|
| table_2 | InnoDB |
|
+------------+--------+
|
2 rows in set (0.00 sec)
|
Creating table_2 creation we obtain a warning, table_2 is correctly created using InnoDB, and until this point, everything is working great.
When we check the same table on another cluster node, we have:
MariaDB [galera_test]> SHOW VARIABLES WHERE Variable_name='enforce_storage_engine' OR Variable_name='sql_mode';
|
+------------------------+--------+
|
| Variable_name | Value |
|
+------------------------+--------+
|
| enforce_storage_engine | InnoDB |
|
| sql_mode | |
|
+------------------------+--------+
|
2 rows in set (0.00 sec)
|
|
MariaDB [galera_test]> SELECT TABLE_NAME, ENGINE FROM information_schema.TABLES where TABLE_SCHEMA = 'galera_test';
|
+------------+--------+
|
| TABLE_NAME | ENGINE |
|
+------------+--------+
|
| table_1 | InnoDB |
|
| table_2 | MyISAM |
|
+------------+--------+
|
2 rows in set (0.00 sec)
|
|
MariaDB [galera_test]> SHOW TABLE STATUS WHERE Name = 'table_2';
|
+---------+--------+---------+------------+------+----------------+-------------+------------------+--------------+-----------+----------------+---------------------+---------------------+------------+-------------------+----------+----------------+---------+
|
| Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time | Update_time | Check_time | Collation | Checksum | Create_options | Comment |
|
+---------+--------+---------+------------+------+----------------+-------------+------------------+--------------+-----------+----------------+---------------------+---------------------+------------+-------------------+----------+----------------+---------+
|
| table_2 | MyISAM | 10 | Fixed | 0 | 0 | 0 | 1970324836974591 | 1024 | 0 | NULL | 2015-12-22 11:08:34 | 2015-12-22 11:08:34 | NULL | latin1_swedish_ci | NULL | | |
|
+---------+--------+---------+------------+------+----------------+-------------+------------------+--------------+-----------+----------------+---------------------+---------------------+------------+-------------------+----------+----------------+---------+
|
1 row in set (0.00 sec)
|
As you can read, creating a MyISAM table (table_2) on the first node produces a correct InnoDB table, but replication of the same table on the other cluster nodes happens using MyISAM engine.
It seems like engine enforcing is used during creation but not during replication....
- relates to
-
MDEV-34514
Storage engine is not forced during replication
-
-
Closed
- links to
-
{"report":{"fcp":1458.5,"ttfb":622.3999998569489,"pageVisibility":"visible","entityId":54906,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a8182f36-768d-4fe5-8831-b04635f0a2f6","navigationType":0,"readyForUser":1552,"redirectCount":0,"resourceLoadedEnd":1805.0999999046326,"resourceLoadedStart":633.5999999046326,"resourceTiming":[{"duration":325.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":633.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":633.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":959.5,"responseStart":0,"secureConnectionStart":0},{"duration":326,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":633.8999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":633.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":959.8999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":339.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":634,"connectEnd":634,"connectStart":634,"domainLookupEnd":634,"domainLookupStart":634,"fetchStart":634,"redirectEnd":0,"redirectStart":0,"requestStart":634,"responseEnd":973.2999999523163,"responseStart":973.2999999523163,"secureConnectionStart":634},{"duration":427.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":634.2999999523163,"connectEnd":634.2999999523163,"connectStart":634.2999999523163,"domainLookupEnd":634.2999999523163,"domainLookupStart":634.2999999523163,"fetchStart":634.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":634.2999999523163,"responseEnd":1061.6999998092651,"responseStart":1061.6999998092651,"secureConnectionStart":634.2999999523163},{"duration":431.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":634.5,"connectEnd":634.5,"connectStart":634.5,"domainLookupEnd":634.5,"domainLookupStart":634.5,"fetchStart":634.5,"redirectEnd":0,"redirectStart":0,"requestStart":634.5,"responseEnd":1065.7999999523163,"responseStart":1065.7999999523163,"secureConnectionStart":634.5},{"duration":431.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":634.6999998092651,"connectEnd":634.6999998092651,"connectStart":634.6999998092651,"domainLookupEnd":634.6999998092651,"domainLookupStart":634.6999998092651,"fetchStart":634.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":634.6999998092651,"responseEnd":1066.3999998569489,"responseStart":1066.3999998569489,"secureConnectionStart":634.6999998092651},{"duration":431.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":634.8999998569489,"connectEnd":634.8999998569489,"connectStart":634.8999998569489,"domainLookupEnd":634.8999998569489,"domainLookupStart":634.8999998569489,"fetchStart":634.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":634.8999998569489,"responseEnd":1066.6999998092651,"responseStart":1066.6999998092651,"secureConnectionStart":634.8999998569489},{"duration":486.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":635,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":635,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1121.3999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":432,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":635.2999999523163,"connectEnd":635.2999999523163,"connectStart":635.2999999523163,"domainLookupEnd":635.2999999523163,"domainLookupStart":635.2999999523163,"fetchStart":635.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":635.2999999523163,"responseEnd":1067.2999999523163,"responseStart":1067.2999999523163,"secureConnectionStart":635.2999999523163},{"duration":486.10000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":635.3999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":635.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1121.5,"responseStart":0,"secureConnectionStart":0},{"duration":432.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":635.5,"connectEnd":635.5,"connectStart":635.5,"domainLookupEnd":635.5,"domainLookupStart":635.5,"fetchStart":635.5,"redirectEnd":0,"redirectStart":0,"requestStart":635.5,"responseEnd":1067.8999998569489,"responseStart":1067.8999998569489,"secureConnectionStart":635.5},{"duration":825.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":636.5,"connectEnd":636.5,"connectStart":636.5,"domainLookupEnd":636.5,"domainLookupStart":636.5,"fetchStart":636.5,"redirectEnd":0,"redirectStart":0,"requestStart":636.5,"responseEnd":1462.0999999046326,"responseStart":1462.0999999046326,"secureConnectionStart":636.5},{"duration":1168.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":636.5999999046326,"connectEnd":636.5999999046326,"connectStart":636.5999999046326,"domainLookupEnd":636.5999999046326,"domainLookupStart":636.5999999046326,"fetchStart":636.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":636.5999999046326,"responseEnd":1805.0999999046326,"responseStart":1805.0999999046326,"secureConnectionStart":636.5999999046326},{"duration":321.89999985694885,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1142,"connectEnd":1142,"connectStart":1142,"domainLookupEnd":1142,"domainLookupStart":1142,"fetchStart":1142,"redirectEnd":0,"redirectStart":0,"requestStart":1142,"responseEnd":1463.8999998569489,"responseStart":1463.8999998569489,"secureConnectionStart":1142},{"duration":423.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1451.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1451.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1874.5999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":466,"responseStart":622,"responseEnd":628,"domLoading":631,"domInteractive":1829,"domContentLoadedEventStart":1829,"domContentLoadedEventEnd":1874,"domComplete":2992,"loadEventStart":2992,"loadEventEnd":2993,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1809.6999998092651},{"name":"bigPipe.sidebar-id.end","time":1810.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1810.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1813.1999998092651},{"name":"activityTabFullyLoaded","time":1920.0999999046326}],"measures":[],"correlationId":"5564e0403a36f","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":87,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}