Bug #14021 | error -1 from storage engine on CREATE INDEX or OPTIMIZE TABLE | ||
---|---|---|---|
Submitted: | 14 Oct 2005 3:22 | Modified: | 21 Aug 2006 8:27 |
Reporter: | Dan Udey | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.13-rc-standard-log | OS: | MacOS (Mac OS X Tiger 10.4.2) |
Assigned to: | CPU Architecture: | Any |
[14 Oct 2005 3:22]
Dan Udey
[14 Oct 2005 14:36]
Valeriy Kravchuk
Thank you for a problem report. Please, send the my.cnf file content and df -k command results (as it is an InnoDB table, we have to check, is it enough space to on the filesystem where tablespace is located etc.). Is there anything strange in the error log for the appropriate period? By the way, I was not able to repeat on 5.0.13-rc-nt with the following actions: mysql> CREATE TABLE `memtest` ( -> `test` int(11) NOT NULL auto_increment, -> `hash` char(32) NOT NULL, -> PRIMARY KEY (`test`) -> ) ENGINE=InnoDB DEFAULT CHARSET=latin1; Query OK, 0 rows affected (0.55 sec) mysql> insert into memtest(hash) values (md5('abc')); Query OK, 1 row affected (0.11 sec) mysql> select * from memtest; +------+----------------------------------+ | test | hash | +------+----------------------------------+ | 1 | 900150983cd24fb0d6963f7d28e17f72 | +------+----------------------------------+ 1 row in set (0.01 sec) mysql> insert into memtest(hash) select md5(hash) from memtest; Query OK, 1 row affected (0.02 sec) Records: 1 Duplicates: 0 Warnings: 0 mysql> insert into memtest(hash) select md5(hash) from memtest; Query OK, 2 rows affected (0.03 sec) Records: 2 Duplicates: 0 Warnings: 0 ... mysql> insert into memtest(hash) select md5(hash) from memtest; Query OK, 262144 rows affected (37.83 sec) Records: 262144 Duplicates: 0 Warnings: 0 mysql> select count(*) from memtest; +----------+ | count(*) | +----------+ | 524288 | +----------+ 1 row in set (4.40 sec) mysql> create index hashes on memtest(test); Query OK, 524288 rows affected (1 min 14.42 sec) Records: 524288 Duplicates: 0 Warnings: 0 mysql> show create table memtest; +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Table | Create Table | +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | memtest | CREATE TABLE `memtest` ( `test` int(11) NOT NULL auto_increment, `hash` char(32) NOT NULL, PRIMARY KEY (`test`), KEY `hashes` (`test`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 | +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.13 sec) mysql> select version(); +--------------+ | version() | +--------------+ | 5.0.13-rc-nt | +--------------+ 1 row in set (0.00 sec) By the way, it is not good to create 2 indexes (keys) on 1 column, I think. Isn't it a mistake you made occationally?
[15 Nov 2005 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".