<?xml version="1.0" encoding="utf-8"?>
<launchpad-bug id="800035">
  <date_last_updated>2011-06-22 07:36:43.306147+00:00</date_last_updated>
  <api_links>
    <bug_api_link>https://api.launchpad.net/1.0/bugs/800035</bug_api_link>
    <bug_owner_link>https://api.launchpad.net/1.0/~laurynas-biveinis</bug_owner_link>
    <milestone_link></milestone_link>
    <linked_branches_collection_link>https://api.launchpad.net/1.0/bugs/800035/linked_branches</linked_branches_collection_link>
    <activity_link>https://api.launchpad.net/1.0/bugs/800035/activity</activity_link>
  </api_links>
  <bug_web_link>https://bugs.launchpad.net/bugs/800035</bug_web_link>
  <owner>Laurynas Biveinis</owner>
  <assignee></assignee>
  <milestone_title></milestone_title>
  <duplicate_link></duplicate_link>
  <duplicate_bug_id></duplicate_bug_id>
  <title>intermittent rpl_deadlock_innodb failures</title>
  <status>New</status>
  <importance>Undecided</importance>
  <created>2011-06-21 14:12:51.420750+00:00</created>
  <description>
<![CDATA[For example:

http://jenkins.percona.com/job/percona-server-5.5-trunk/BUILD_TYPE=release,Host=ubuntu-maverick-64bit/18/console

rpl.rpl_deadlock_innodb 'mix'            w7 [ retry-fail ]
        Test ended at 2011-06-21 03:34:19

CURRENT_TEST: rpl.rpl_deadlock_innodb
mysqltest: In included file "./include/wait_for_slave_param.inc": 
included from ./include/wait_for_slave_param.inc at line 115:
included from ./include/wait_for_slave_sql_error.inc at line 41:
included from ./extra/rpl_tests/rpl_deadlock.test at line 84:
At line 115: Timeout in include/wait_for_slave_param.inc

The result from queries just before the failure was:
< snip >
master-bin.000001	845

**** SHOW BINLOG EVENTS on server_1 ****
binlog_name = 'master-bin.000001'
SHOW BINLOG EVENTS IN 'master-bin.000001';
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	4	Format_desc	1	107	Server ver: 5.5.13-log, Binlog ver: 4
master-bin.000001	107	Query	1	224	use `test`; CREATE TABLE t1 (a INT NOT NULL, KEY(a)) ENGINE=innodb
master-bin.000001	224	Query	1	324	use `test`; CREATE TABLE t2 (a INT) ENGINE=innodb
master-bin.000001	324	Query	1	441	use `test`; CREATE TABLE t3 (a INT NOT NULL, KEY(a)) ENGINE=innodb
master-bin.000001	441	Query	1	509	BEGIN
master-bin.000001	509	Query	1	597	use `test`; INSERT INTO t1 VALUES (1)
master-bin.000001	597	Query	1	730	use `test`; INSERT INTO t2 VALUES (2), (2), (2), (2), (2), (2), (2), (2), (2), (2)
master-bin.000001	730	Query	1	818	use `test`; INSERT INTO t3 VALUES (3)
master-bin.000001	818	Xid	1	845	COMMIT /* xid=384 */

**** SHOW RELAYLOG EVENTS on server_1 ****
relaylog_name = 'No such row'
SHOW RELAYLOG EVENTS IN 'No such row';
Log_name	Pos	Event_type	Server_id	End_log_pos	Info

More results from queries before failure can be found in /mnt/workspace/percona-server-5.5-trunk/BUILD_TYPE/release/Host/ubuntu-maverick-64bit/Percona-Server-5.5.13-rel20.4/mysql-test/var/7/log/rpl_deadlock_innodb.log

 - saving '/mnt/workspace/percona-server-5.5-trunk/BUILD_TYPE/release/Host/ubuntu-maverick-64bit/Percona-Server-5.5.13-rel20.4/mysql-test/var/7/log/rpl.rpl_deadlock_innodb-mix/' to '/mnt/workspace/percona-server-5.5-trunk/BUILD_TYPE/release/Host/ubuntu-maverick-64bit/Percona-Server-5.5.13-rel20.4/mysql-test/var/log/rpl.rpl_deadlock_innodb-mix/'

Another instance on a branch with unrelated change:
http://jenkins.percona.com/job/percona-server-5.5-param/BUILD_TYPE=debug,Host=ubuntu-natty-64bit/8/console]]>  </description>
  <activities>
    <activity datechanged="2011-06-21T04:26:14.474189+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[]]>      </newvalue>
      <whatchanged>bug</whatchanged>
      <person>Laurynas Biveinis</person>
      <message>added bug</message>
    </activity>
    <activity datechanged="2011-06-21T04:26:29.392422+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[percona-server/5.5]]>      </newvalue>
      <whatchanged>nominated for series</whatchanged>
      <person>Laurynas Biveinis</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-21T04:26:29.392422+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[percona-server/5.5]]>      </newvalue>
      <whatchanged>bug task added</whatchanged>
      <person>Laurynas Biveinis</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-21T13:46:52.426368+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[percona-server/5.1]]>      </newvalue>
      <whatchanged>nominated for series</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-21T13:46:52.426368+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[percona-server/5.1]]>      </newvalue>
      <whatchanged>bug task added</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-21T13:47:01.506095+00:00">
      <oldvalue>
<![CDATA[New]]>      </oldvalue>
      <newvalue>
<![CDATA[Fix Committed]]>      </newvalue>
      <whatchanged>percona-server/5.1: status</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-21T13:47:03.753183+00:00">
      <oldvalue>
<![CDATA[New]]>      </oldvalue>
      <newvalue>
<![CDATA[Fix Committed]]>      </newvalue>
      <whatchanged>percona-server/5.5: status</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-21T13:47:14.413560+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[Stewart Smith (stewart)]]>      </newvalue>
      <whatchanged>percona-server/5.1: assignee</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-21T13:47:15.944525+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[Stewart Smith (stewart)]]>      </newvalue>
      <whatchanged>percona-server/5.5: assignee</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-21T13:47:17.501965+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[5.1.58-12.9]]>      </newvalue>
      <whatchanged>percona-server/5.1: milestone</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-21T13:47:19.977612+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[5.5.13-20.4]]>      </newvalue>
      <whatchanged>percona-server/5.5: milestone</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-21T13:47:24.085553+00:00">
      <oldvalue>
<![CDATA[Undecided]]>      </oldvalue>
      <newvalue>
<![CDATA[High]]>      </newvalue>
      <whatchanged>percona-server/5.1: importance</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-21T13:47:25.954984+00:00">
      <oldvalue>
<![CDATA[Undecided]]>      </oldvalue>
      <newvalue>
<![CDATA[High]]>      </newvalue>
      <whatchanged>percona-server/5.5: importance</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-21T13:47:42.106563+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[lp:~stewart/percona-server/slave-timeout-fix-5.1]]>      </newvalue>
      <whatchanged>branch linked</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-21T13:47:47.738103+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[lp:~stewart/percona-server/slave-timeout-fix-5.5]]>      </newvalue>
      <whatchanged>branch linked</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-21T14:12:51.420750+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[maria]]>      </newvalue>
      <whatchanged>bug task added</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-22T05:24:15.797382+00:00">
      <oldvalue>
<![CDATA[Fix Committed]]>      </oldvalue>
      <newvalue>
<![CDATA[Fix Released]]>      </newvalue>
      <whatchanged>percona-server/5.1: status</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-22T05:24:17.880815+00:00">
      <oldvalue>
<![CDATA[Fix Committed]]>      </oldvalue>
      <newvalue>
<![CDATA[Fix Released]]>      </newvalue>
      <whatchanged>percona-server/5.5: status</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-22T07:36:40.542388+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[http://bugs.mysql.com/bug.php?id=61595]]>      </newvalue>
      <whatchanged>bug watch added</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
    <activity datechanged="2011-06-22T07:36:40.542388+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[mysql-server]]>      </newvalue>
      <whatchanged>bug task added</whatchanged>
      <person>Stewart Smith</person>
      <message></message>
    </activity>
  </activities>
  <comments>
    <comment commentlink="https://api.launchpad.net/1.0/percona-server/+bug/800035/comments/1" datecreated="2011-06-21T13:31:56.838116+00:00">
      <person>Stewart Smith</person>
      <subject>
<![CDATA[Re: intermittent rpl_deadlock_innodb failures]]>      </subject>
      <content>
<![CDATA[currently trying this patch to see if it may help:

--- a/mysql-test/include/wait_for_slave_param.inc	2011-04-12 22:38:45.000000000 +1000
+++ b/mysql-test/include/wait_for_slave_param.inc	2011-06-21 22:59:13.804854682 +1000
@@ -79,7 +79,7 @@
 
 # mysqltest doesn't provide any better way to multiply by 10
 --let $_wait_for_slave_param_zero= 0
---let $_slave_timeout_counter= $_slave_timeout$zero
+--let $_slave_timeout_counter= $_slave_timeout$_wait_for_slave_param_zero
 --let $_slave_continue= 1
 while ($_slave_continue)
 {
]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/percona-server/+bug/800035/comments/2" datecreated="2011-06-21T14:13:23.509964+00:00">
      <person>Stewart Smith</person>
      <subject>
<![CDATA[Re: intermittent rpl_deadlock_innodb failures]]>      </subject>
      <content>
<![CDATA[Not sure if this affects Maria or not... but it's possible that you may be hitting it, depending on your build+test setup I guess.]]>      </content>
    </comment>
  </comments>
  <branches>
    <branch>lp:~stewart/percona-server/slave-timeout-fix-5.1</branch>
    <branch>lp:~stewart/percona-server/slave-timeout-fix-5.5</branch>
  </branches>
</launchpad-bug>
