Bug #85015 | MySQL Cluster 7.5.5 Replication Slave SQL Thread hangs with create table | ||
---|---|---|---|
Submitted: | 16 Feb 2017 8:59 | Modified: | 22 Mar 2017 21:42 |
Reporter: | Ivan Ma | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Cluster: Replication | Severity: | S3 (Non-critical) |
Version: | 7.5.5 | OS: | Oracle Linux (7.3) |
Assigned to: | CPU Architecture: | Any | |
Tags: | regression |
[16 Feb 2017 8:59]
Ivan Ma
[17 Feb 2017 8:33]
Ivan Ma
To simplify the test scenario : using 1 VM. No replication but enable log-bin. create site --hosts=127.0.0.1 mysite; add package --basedir=/home/mysql/demos/mcm/cluster-755 cluster755; create cluster --package=cluster755 --processhosts=ndb_mgmd@127.0.0.1,ndbmtd@127.0.0.1,ndbmtd@127.0.0.1,mysqld@127.0.0.1 mycluster; set server-id:mysqld:50=53316 mycluster; set binlog-format:mysqld=ROW mycluster; set log-bin:mysqld:50=binlog mycluster; start cluster mycluster; show status -r mycluster; ********* #!/bin/sh mysql -uroot -h127.0.0.1 -P53316 << EOC create database if not exists test; create table test.t1 (f1 int not null auto_increment primary key, f2 varchar(20)) engine=ndbcluster; The create table statement is hanged. Please also find attached gdb log "thread apply all bt" when it was hanged.
[17 Feb 2017 8:50]
Ivan Ma
A simple test script for hang on my environment.
Attachment: bug85015.test (application/octet-stream, text), 656 bytes.
[2 Mar 2017 3:02]
MySQL Verification Team
Hi Ivan, I managed to verify this finally *but* it's not something I can reproduce *on demand* ... initially I was testing using bare metal and I was not able to reproduce ... moved to VM and again was working ok, then moved to single VM (your last example) and again it was working ok ?!?!?!? I finally reproduced it by 1. using MCM to create cluster (I was normally using cluster's I configure and start myself) 2. I moved the VM from dedicated ESXi to my local machine with VirtualBox not sure which exactly helped but it can be reproduced now.
[22 Mar 2017 21:42]
Jon Stephens
Documented fix in NDB 7.5.7 and 7.6.2, as follows: Execution of CREATE TABLE could in some cases cause the replication slave SQL thread to hang. Regression of BUG#83676. Closed.