ALTER TABLE ... ENGINE = TOKUDB crashes on Ubuntu 12.04
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.6 |
Invalid
|
High
|
Unassigned | |||
5.7 |
Invalid
|
High
|
Unassigned |
Bug Description
ALTER TABLE ... ENGINE = TOKUDB crashes on Ubuntu 12.04
How to repeat:
0. Fresh Ubuntu Precise64 install:
$ uname -a
Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
1. Download latest 5.6 version: Percona-
2. Install jemalloc, libaio, libnuma, disable transparent pages:
vagrant@
root@precise64:
root@precise64:
root@precise64:
3. Start MTR:
LD_PRELOAD=
4. Enable TokuDB:
vagrant@
Checking if Percona Server is running with jemalloc enabled...
INFO: Percona Server is running with jemalloc enabled.
Checking transparent huge pages status on the system...
INFO: Transparent huge pages are enabled (should be disabled).
Checking if thp-setting=never option is already set in config file...
INFO: Option thp-setting=never is set in the config file.
Checking TokuDB engine plugin status...
ERROR: TokuDB engine plugin is partially installed. Please cleanup manually.
First strange thing: it complains about transparent pages, but they are disabled
5. Verify TokuDB engine enabled:
mysql> show engines;
+------
| Engine | Support | Comment | Transactions | XA | Savepoints |
+------
| InnoDB | YES | Percona-XtraDB, Supports transactions, row-level locking, and foreign keys | YES | YES | YES |
| MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
| MyISAM | DEFAULT | MyISAM storage engine | NO | NO | NO |
| BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | NO | NO | NO |
| CSV | YES | CSV storage engine | NO | NO | NO |
| TokuDB | YES | Percona TokuDB Storage Engine with Fractal Tree(tm) Technology | YES | YES | YES |
...
6. create database sbtest;
7. Create a table (non-TokuDB):
sysbench --test=oltp --oltp-
8. Alter sbtest table:
mysql> alter table sbtest engine=tokudb;
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql> worker[1] Server [mysqld.1 - pid: 8200, winpid: 8200, exit: 256] died
Only 0 of 1 completed.
mysql-test-run: *** ERROR: Not all tests completed
Relevant part of the error log file:
Version: '5.6.30-76.3-log' socket: '/home/
21:30:04 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
Please help us make Percona Server better by reporting any
bugs at http://
key_buffer_
read_buffer_
max_used_
max_threads=153
thread_count=1
connection_count=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x7f1914b5f000
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7f19218bae10 thread_stack 0x40000
/home/vagrant/
/home/vagrant/
/lib/x86_
/usr/lib/
/lib/x86_
/home/vagrant/
/home/vagrant/
/home/vagrant/
/home/vagrant/
/home/vagrant/
/home/vagrant/
/home/vagrant/
/home/vagrant/
/home/vagrant/
/home/vagrant/
/home/vagrant/
/lib/x86_
/lib/x86_
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f18fb01b010): alter table sbtest engine=tokudb
Connection ID (thread ID): 5
Status: NOT_KILLED
tags: | added: pkg tokudb |
Bug is not repeatable on Ubuntu 14.04