Failing assertion: mutex_own(&buf_pool->mutex) in buf0lru.c on ADD PRIMARY KEY
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
Critical
|
Laurynas Biveinis | ||
5.1 |
Invalid
|
Undecided
|
Unassigned | ||
5.5 |
Fix Released
|
Critical
|
Laurynas Biveinis |
Bug Description
Percona XtraDB (http://
Version: '5.5.27-debug-log'
InnoDB: Assertion failure in thread 140216578594560 in file buf0lru.c line 390
InnoDB: Failing assertion: mutex_own(
Query (398ffd0): ALTER TABLE t1 ADD PRIMARY KEY (l_orderkey, l_linenumber)
Connection ID (thread ID): 1
Status: NOT_KILLED
#5 0x00007f86c8d8fb0b in __GI_abort () at abort.c:92
#6 0x00000000009a5e24 in buf_flush_yield (buf_pool=
#7 0x00000000009a5f80 in buf_flush_try_yield (buf_pool=
#8 0x00000000009a6272 in buf_flush_
#9 0x00000000009a62e9 in buf_flush_
#10 0x00000000009a676a in buf_LRU_
#11 0x00000000009e3db0 in fil_delete_
#12 0x0000000000901f72 in row_drop_
#13 0x00000000008f6d85 in row_merge_
#14 0x00000000008e2070 in ha_innobase:
#15 0x0000000000675e0c in mysql_alter_table (thd=0x38fb310, new_db=0x3990620 "test", new_name=0x39900c0 "t1", create_
#16 0x0000000000894130 in Alter_table_
#17 0x00000000005ee1ee in mysql_execute_
#18 0x00000000005f0d3d in mysql_parse (thd=0x38fb310, rawbuf=0x398ffd0 "ALTER TABLE t1 ADD PRIMARY KEY (l_orderkey, l_linenumber)", length=57, parser_
#19 0x00000000005e4c01 in dispatch_command (command=COM_QUERY, thd=0x38fb310, packet=0x3987e71 "ALTER TABLE t1 ADD PRIMARY KEY (l_orderkey, l_linenumber)", packet_length=57) at sql/sql_
#20 0x00000000005e3edd in do_command (thd=0x38fb310) at sql/sql_
#21 0x00000000006cb0b8 in do_handle_
#22 0x00000000006caa9e in handle_
#23 0x0000000000aaa0af in pfs_spawn_thread (arg=0x3966020) at storage/
#24 0x00007f86c9ac6efc in start_thread (arg=0x7f86b75b
#25 0x00007f86c8e3959d in clone () at ../sysdeps/
bzr version-info
revision-id: <email address hidden>
date: 2012-08-15 10:46:21 +1000
build-date: 2012-08-17 23:08:42 +0400
revno: 290
build options: -DCMAKE_
# Test case:
# Run as
# perl mysql-test-run.pl --mysqld=
# --mysqld=
SET GLOBAL innodb_
SET GLOBAL slow_query_log=OFF;
USE test;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (
`l_tax` double DEFAULT NULL,
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
LOAD DATA LOCAL INFILE 'mdev-444.data' INTO TABLE t1;
# Server restart can be replaced by waiting for
# Innodb_
--enable_reconnect
--append_file $MYSQLTEST_
restart
EOF
--shutdown_server 60
--source include/
ALTER TABLE t1 ADD PRIMARY KEY (l_orderkey, l_linenumber);
# Cleanup
DROP TABLE t1;
# End of the test case
Initially encountered on DBT3 S10 data, the description and initial analysis by Timour is also filed as https:/
Upd: sorry, forgot to mention: data file for the LOAD command, in case you need the test case, can be found at https:/
Related branches
- Stewart Smith (community): Approve
-
Diff: 59 lines (+8/-8)1 file modifiedPercona-Server/storage/innobase/buf/buf0lru.c (+8/-8)
description: | updated |
Changed in android-user-issue-20128 (Unity Linux): | |
assignee: | nobody → Alejandra Bedolla Diaz (diazalejandra2008) |
Changed in android-user-issue-20128 (Unity Linux): | |
assignee: | Alejandra Bedolla Diaz (diazalejandra2008) → nobody |
affects: | android-user-issue-20128 (Unity Linux) → percona-xtradb |
no longer affects: | percona-xtradb |
It looks like a regression from the fix for https:/ /bugs.launchpad .net/percona- server/ +bug/1007268
This should fix it.
=== modified file 'Percona- Server/ storage/ innobase/ buf/buf0lru. c' Server/ storage/ innobase/ buf/buf0lru. c 2012-08-10 05:05:10 +0000 Server/ storage/ innobase/ buf/buf0lru. c 2012-08-19 17:33:54 +0000
--- Percona-
+++ Percona-
@@ -387,7 +387,7 @@
{
mutex_t* block_mutex;
- ut_ad(buf_ pool_mutex_ own(buf_ pool)); own(&buf_ pool->LRU_ list_mutex) );
ut_ad( buf_page_ in_file( bpage)) ;
+ ut_ad(mutex_
block_mutex = buf_page_ get_mutex( bpage);