[MDEV-6858] enforce_storage_engine option Created: 2014-10-09 Updated: 2015-08-07 Resolved: 2015-03-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Fix Version/s: | 10.1.4 |
| Type: | Task | Priority: | Major |
| Reporter: | Colin Charles | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Description |
|
We should support enforce_storage_engine, like Percona Server 5.5/5.6 has. Description: http://www.percona.com/doc/percona-server/5.6/management/enforce_engine.html Use case: To improve management – eg. enforce_storage_engine=InnoDB – this ensures that people don't create MyISAM tables by accident. Customer requests: There have been no customer requests for this yet from MariaDB Corporation. 1. It is however likely used in HPCloud, DBaaS – see: https://github.com/saurabhsurana/trove-installer/blob/f7cf7824fb7536b16da073ba7fdb0e717da26fb1/saltstack/states/trove/taskmanager/mysql.config.template 2. We have had a migration from MariaDB 10 to Percona Server 5.6 at a bank in Germany performed by FromDual for this very reason – http://www.fromdual.ch/de/node/1074 |
| Comments |
| Comment by Elena Stepanova [ 2014-10-09 ] |
|
Setting the target version to 10.0 because Colin initially specified 10.0.14 as an affected version (it's gone now after moving from bug to task). |
| Comment by Jan Lindström (Inactive) [ 2015-01-15 ] |
|
Colin, is this important for current customers? I will merge this to 10.x only if there is clear use case for this on customer environment(s). R: Jan |
| Comment by Jan Lindström (Inactive) [ 2015-01-19 ] |
|
revno: 4565 Merge from Percona Server enforced use of a specific storage engine See patch attached. |
| Comment by Jan Lindström (Inactive) [ 2015-01-19 ] |
|
Patch attached on MDEV. |
| Comment by Colin Charles [ 2015-02-03 ] |
|
and assuming we want to improve upon it, some feedback: |
| Comment by Jan Lindström (Inactive) [ 2015-03-08 ] |
|
Hi Serg, Better to review this again as implementation is totally different, I tried to follow default_storage_engine implementation. http://lists.askmonty.org/pipermail/commits/2015-March/007538.html |
| Comment by Jan Lindström (Inactive) [ 2015-03-10 ] |
|
http://lists.askmonty.org/pipermail/commits/2015-March/007550.html |
| Comment by Jan Lindström (Inactive) [ 2015-03-12 ] |
|
commit 8249dcaaebf8cd1944bd4ab7ccaa8b199e76d6f9 Merge from Percona Server enforced use of a specific storage engine Modified to be session variable and modifiable only by SUPER. Use |
| Comment by Otto Kekäläinen [ 2015-07-03 ] |
|
Is this backported to 10.0.x or really only in 10.1.4 as the "Fix version" says? |
| Comment by Otto Kekäläinen [ 2015-07-07 ] |
|
At least MariaDB 10.0.20 complains ```[ERROR] /usr/sbin/mysqld: unknown variable 'enforce_storage_engine=InnoDB'``` so it is not backported to 10.0 series. |
| Comment by Elena Stepanova [ 2015-07-07 ] |
|
As the Fix version/s field states, it's 10.1 only. I don't know if such a thing can be backported into a long-after-GA version. |