[MDEV-11073] Confusing error message when enabling page compression and innodb file format is incorrect Created: 2016-10-17 Updated: 2016-10-27 Resolved: 2016-10-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table, Storage Engine - InnoDB |
| Affects Version/s: | 10.1.18 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | innodb, page_compression | ||
| Description |
|
InnoDB page compression in MariaDB 10.1 requires innodb_file_format to be set to Barracuda. If innodb_file_format is not Barracuda, and if the user tries to enable InnoDB page compression for a particular table, MariaDB returns a somewhat confusing error. e.g.:
"Wrong create options" is kind of confusing if the user doesn't know to check innodb_file_format. Wouldn't it be better if the error message said something like "PAGE_COMPRESSED can only be set if innodb_file_format is Barracuda"? |
| Comments |
| Comment by Jan Lindström (Inactive) [ 2016-10-27 ] | |||||||||
|
When you get confusing error messages you could use show warnings; This normally will include more detailed information from storage engine. As this PAGE_COMPRESSED is only supported by InnoDB storage engine it is not good idea to introduce a new error message that would be very storage engine specific. | |||||||||
| Comment by Geoff Montee (Inactive) [ 2016-10-27 ] | |||||||||
|
Ah, I do see that SHOW WARNINGS has some more useful messages:
Thanks! |