[MDEV-3061] LP:997460 - truncate table on partitioned Aria table fails with ER_ILLEGAL_HA Created: 2012-05-10 Updated: 2014-06-20 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Scott Feldstein (Inactive) | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Hi, My application uses lots of the "truncate table" command on tables located in the aria storage engine. Every hour I run a series of "truncate table" commands on the tables and am getting these errors: Table storage engine for 'TABLE' doesn't have this option This happens about 50% of the time when truncate is executed. When I run the command directly on the db, via the mysql client, I don't see the issue. Additionally I don't see any errors in the mysqld log. This did not occur on previous versions of mariadb / aria engine, I was actually having other issues that I didn't log a bug for, but they seem to have subsided in favor of this issue in this release. Please let me know what I can give you to better diagnose the error. It is occurring all the time in my env so I shouldn't have a problem giving you any data that you need. thanks. |
| Comments |
| Comment by Elena Stepanova [ 2012-05-10 ] | ||
|
Re: truncate table on aria storage engine fails inconsistently If possible, could you please backup the datadir when the server is down, start server with the general log ON (to file) and provide the datadir backup along with the general log + error log up to the moment when the error occurs? If you can't shutdown the server, please provide the database dump instead (still, along with the general log). Thank you. | ||
| Comment by Scott Feldstein (Inactive) [ 2012-05-10 ] | ||
|
Re: truncate table on aria storage engine fails inconsistently Do you have a site that I could upload this to? | ||
| Comment by Elena Stepanova [ 2012-05-10 ] | ||
|
Re: truncate table on aria storage engine fails inconsistently | ||
| Comment by Scott Feldstein (Inactive) [ 2012-05-15 ] | ||
|
Re: truncate table on aria storage engine fails inconsistently I understand why this is an invalid scenario since truncate table is a ddl command, but this didn't occur in earlier mariadb releases. The only potential bug that I see is to make the error message more clear. Up to you if you want to do anything about that. thanks again for the quick response. | ||
| Comment by Elena Stepanova [ 2012-05-16 ] | ||
|
Re: truncate table on aria storage engine fails inconsistently It still sounds strange. Being a DDL operation, TRUNCATE is supposed to implicitly commit a transaction, not to cause an error. | ||
| Comment by Scott Feldstein (Inactive) [ 2012-05-16 ] | ||
|
Re: truncate table on aria storage engine fails inconsistently MariaDB [mydb]> CREATE TABLE IF NOT EXISTS MYTABLE ( MariaDB [mydb]> set autocommit = 0; MariaDB [mydb]> truncate table MYTABLE; MariaDB [hqdb]> select @@version;
--------------------
-------------------- Let me know if you need anymore info. | ||
| Comment by Elena Stepanova [ 2012-05-17 ] | ||
|
Re: truncate table on aria storage engine fails inconsistently Thank you, the fact that the table is partitioned was the missing bit of info (although, I could have guessed). | ||
| Comment by Elena Stepanova [ 2012-05-17 ] | ||
|
Re: truncate table on aria storage engine fails inconsistently
CREATE TABLE t ( i INT )
| ||
| Comment by Elena Stepanova [ 2012-05-17 ] | ||
|
Re: truncate table on partitioned Aria table fails with ER_ILLEGAL_HA | ||
| Comment by Michael Widenius [ 2012-05-18 ] | ||
|
Re: truncate table on partitioned Aria table fails with ER_ILLEGAL_HA Have now fixed this by forcing the Aria internal truncate call to do an explicit commit. | ||
| Comment by Rasmus Johansson (Inactive) [ 2012-05-18 ] | ||
|
Launchpad bug id: 997460 |