Activity log for bug #1314854

Date Who What changed Old value New value Message
2014-04-30 23:56:41 Swany bug added bug
2014-05-01 00:06:59 Swany description Given table: CREATE TABLE reg_0 ( reg_name varchar(127) NOT NULL, reg_key varchar(64) NOT NULL DEFAULT '', reg_secret varchar(128) NOT NULL, description varchar(255) DEFAULT NULL, reg_status varchar(16) NOT NULL, user_id varchar(255) NOT NULL, owner_id varchar(64) DEFAULT NULL, category varchar(64) DEFAULT NULL, creation_time bigint(20) DEFAULT NULL, last_modification_time bigint(20) DEFAULT NULL, app_platform varchar(64) DEFAULT NULL, company_name varchar(64) DEFAULT NULL, company_website varchar(256) DEFAULT NULL, customer_lead_id varchar(36) DEFAULT NULL, usage_type varchar(36) DEFAULT NULL, country char(3) DEFAULT NULL, state char(2) DEFAULT NULL, customer_accounting_id varchar(20) DEFAULT NULL, has_note tinyint(4) DEFAULT NULL, UNIQUE KEY unq_reg_key (reg_key), PRIMARY KEY (reg_key), KEY reg_key (reg_key), KEY user_id (user_id), KEY reg_status (reg_status), KEY owner_id (owner_id), KEY category (category), KEY last_modification_time (last_modification_time) ); Multiple clients can not insert into this table without getting wsrep certification failures (reported as deadlock at commit) even though the inserts do no conflict for the given unique key. Here is a script to demonstrate the problem: ------Insert Script foo.sh----- #!/bin/bash min=$1 max=$2 #!/bin/bash min=$1 max=$2 database=test increment=$3 prefix=`hostname -a` counter=$min table=reg_D # for table in reg_0 reg_A reg_B reg_C ;do #!/bin/bash min=$1 max=$2 database=test increment=$3 prefix=`hostname -a` counter=$min table=reg_F # for table in reg_0 reg_A reg_B reg_C ;do logfile="ins.$prefix.$database.$table.`date +%F-%H-%M`.log" while [ ${counter} -lt ${max} ] ;do mysql --debug-info=true -vvvvvvvvvv $database < -- SET GLOBAL AUTOCOMMIT=off; INSERT INTO ${table} (reg_name , reg_key , reg_secret , description , reg_status , user_id , owner_id) VALUES ("${prefix}_name_${counter}" ,"${prefix}_key_${counter}" ,"${prefix}_pw_${counter}" ,"${prefix}_descr_${counter}" ,"active" ,"uid_dbs_${counter}" ,"A_accessorLoadtestCk_1") ; -- INSERT INTO ${table} (id,c1,c2) values ("$counter}","${prefix}_${counter}","${counter}") -- DELETE from ${table} where reg_key="${prefix}_DBS_${counter}"; -- truncate table $table ; SQL let counter=$counter+$increment done >$logfile 2>&1 ------------end------------ There are wsrep certification failures happen when min <= 99. Given table: CREATE TABLE reg_0 ( reg_name varchar(127) NOT NULL, reg_key varchar(64) NOT NULL DEFAULT '', reg_secret varchar(128) NOT NULL, description varchar(255) DEFAULT NULL, reg_status varchar(16) NOT NULL, user_id varchar(255) NOT NULL, owner_id varchar(64) DEFAULT NULL, category varchar(64) DEFAULT NULL, creation_time bigint(20) DEFAULT NULL, last_modification_time bigint(20) DEFAULT NULL, app_platform varchar(64) DEFAULT NULL, company_name varchar(64) DEFAULT NULL, company_website varchar(256) DEFAULT NULL, customer_lead_id varchar(36) DEFAULT NULL, usage_type varchar(36) DEFAULT NULL, country char(3) DEFAULT NULL, state char(2) DEFAULT NULL, customer_accounting_id varchar(20) DEFAULT NULL, has_note tinyint(4) DEFAULT NULL, UNIQUE KEY unq_reg_key (reg_key), PRIMARY KEY (reg_key), KEY reg_key (reg_key), KEY user_id (user_id), KEY reg_status (reg_status), KEY owner_id (owner_id), KEY category (category), KEY last_modification_time (last_modification_time) ); Multiple clients can not insert into this table without getting wsrep certification failures (reported as deadlock at commit) even though the inserts do no conflict for the given unique key. This problem ONLY occurs with alphanumeric unique keys. An auto_increment works properly. Here is a script to demonstrate the problem: ------Insert Script foo.sh----- #!/bin/bash min=$1 max=$2 #!/bin/bash min=$1 max=$2 database=test increment=$3 prefix=`hostname -a` counter=$min table=reg_D # for table in reg_0 reg_A reg_B reg_C ;do #!/bin/bash min=$1 max=$2 database=test increment=$3 prefix=`hostname -a` counter=$min table=reg_F # for table in reg_0 reg_A reg_B reg_C ;do logfile="ins.$prefix.$database.$table.`date +%F-%H-%M`.log" while [ ${counter} -lt ${max} ] ;do mysql --debug-info=true -vvvvvvvvvv $database < -- SET GLOBAL AUTOCOMMIT=off; INSERT INTO ${table} (reg_name , reg_key , reg_secret , description , reg_status , user_id , owner_id) VALUES ("${prefix}_name_${counter}" ,"${prefix}_key_${counter}" ,"${prefix}_pw_${counter}" ,"${prefix}_descr_${counter}" ,"active" ,"uid_dbs_${counter}" ,"A_accessorLoadtestCk_1") ; -- INSERT INTO ${table} (id,c1,c2) values ("$counter}","${prefix}_${counter}","${counter}") -- DELETE from ${table} where reg_key="${prefix}_DBS_${counter}"; -- truncate table $table ; SQL let counter=$counter+$increment done >$logfile 2>&1 ------------end------------ There are wsrep certification failures happen when min <= 99.
2014-05-05 08:06:37 Teemu Ollakka bug task added codership-mysql
2014-05-05 12:56:34 Przemek attachment added test.sh https://bugs.launchpad.net/percona-xtradb-cluster/+bug/1314854/+attachment/4105629/+files/test.sh
2014-05-05 13:00:01 Przemek tags i41678
2014-05-12 08:08:25 Valerii Kravchuk nominated for series percona-xtradb-cluster/5.6
2014-05-12 08:08:25 Valerii Kravchuk bug task added percona-xtradb-cluster/5.6
2014-05-12 08:08:25 Valerii Kravchuk nominated for series percona-xtradb-cluster/trunk
2014-05-12 08:08:25 Valerii Kravchuk bug task added percona-xtradb-cluster/trunk
2014-05-12 08:10:10 Przemek percona-xtradb-cluster/trunk: status New Confirmed
2014-05-12 08:16:34 Przemek percona-xtradb-cluster/5.6: status New Invalid
2014-06-13 16:14:58 Raghavendra D Prabhu percona-xtradb-cluster/trunk: milestone future-5.5
2014-06-19 09:12:40 Seppo Jaakola codership-mysql: assignee Seppo Jaakola (seppo-jaakola)
2014-06-19 09:12:44 Seppo Jaakola codership-mysql: status New In Progress
2014-06-19 09:12:50 Seppo Jaakola codership-mysql: milestone 5.6.19-25.6
2014-06-19 20:44:12 Raghavendra D Prabhu percona-xtradb-cluster/5.6: status Invalid In Progress
2014-06-19 20:44:15 Raghavendra D Prabhu percona-xtradb-cluster/5.6: milestone 5.6.19-25.6
2014-06-25 13:34:05 Teemu Ollakka nominated for series codership-mysql/5.5
2014-06-25 13:34:05 Teemu Ollakka bug task added codership-mysql/5.5
2014-06-25 13:34:05 Teemu Ollakka nominated for series codership-mysql/5.6
2014-06-25 13:34:05 Teemu Ollakka bug task added codership-mysql/5.6
2014-06-25 13:34:13 Teemu Ollakka codership-mysql/5.5: status New Fix Committed
2014-06-25 13:34:17 Teemu Ollakka codership-mysql/5.6: status In Progress Fix Committed
2014-06-25 13:34:28 Teemu Ollakka codership-mysql/5.5: assignee Seppo Jaakola (seppo-jaakola)
2014-06-25 21:50:59 Raghavendra D Prabhu percona-xtradb-cluster/5.6: status In Progress Fix Committed
2014-07-01 18:18:00 Ovais Tariq bug added subscriber Ovais Tariq
2014-07-02 16:19:47 Raghavendra D Prabhu percona-xtradb-cluster/trunk: status Confirmed Fix Committed
2014-07-02 16:19:50 Raghavendra D Prabhu percona-xtradb-cluster/trunk: milestone future-5.5 5.5.38-25.11
2014-07-22 06:53:45 Hrvoje Matijakovic percona-xtradb-cluster/5.6: status Fix Committed Fix Released
2014-09-05 17:57:35 Hrvoje Matijakovic percona-xtradb-cluster/5.5: status Fix Committed Fix Released
2015-02-09 22:49:20 Alex Yurchenko codership-mysql/5.6: status Fix Committed Fix Released
2015-02-09 22:49:26 Alex Yurchenko codership-mysql/5.6: milestone 5.6.20-25.6 5.6.21-25.9
2015-11-17 11:16:49 Krunal Bauskar percona-xtradb-cluster/5.5: importance Undecided High
2015-11-17 11:16:50 Krunal Bauskar percona-xtradb-cluster/5.6: importance Undecided High