Update of federated table and MyISAM table with one row crashes server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Server |
Unknown
|
Unknown
|
|||
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
Medium
|
George Ormond Lorch III | ||
5.1 |
Fix Released
|
Medium
|
George Ormond Lorch III | ||
5.5 |
Fix Released
|
Medium
|
George Ormond Lorch III | ||
5.6 |
Fix Released
|
Medium
|
George Ormond Lorch III |
Bug Description
See testcase.sql attached. Multiple tables UPDATE involving federated table with one row crashes Percona server 5.1.x (5.1.59 and 5.1.68 at least):
[openxs@centos Percona-
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.1.68rel14.5 Percona Server with XtraDB (GPL), Release rel14.5, Revision 513
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use testcase
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> UPDATE user_dimension_f ud
-> INNER JOIN first_traded_data ftd
-> ON ftd.account_id = ud.account_id
-> SET ud.first_traded = ftd.first_traded
-> WHERE ud.first_traded IS NULL;
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql> 130521 19:56:32 mysqld_safe Number of processes running now: 0
130521 19:56:32 mysqld_safe mysqld restarted
mysql> exit
Bye
[openxs@centos Percona-
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=151
thread_count=2
connection_count=2
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: 0x1a99a20
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 = 7f6fb4562e68 thread_stack 0x40000
/home/openxs/
/home/openxs/
/lib64/
/home/openxs/
/home/openxs/
/home/openxs/
/home/openxs/
/home/openxs/
/home/openxs/
/home/openxs/
/home/openxs/
/home/openxs/
/home/openxs/
/home/openxs/
/home/openxs/
/lib64/
/lib64/
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f6f94004a00): UPDATE user_dimension_f ud INNER JOIN first_traded_data ftd ON ftd.account_id = ud.account_id SET ud.first_traded = ftd.first_traded WHERE ud.first_traded IS NULL
Connection ID (thread ID): 7
Status: NOT_KILLED
Related branches
- Alexey Kopytov (community): Approve
-
Diff: 228 lines (+180/-0) (has conflicts)3 files modifiedPercona-Server/mysql-test/suite/federated/federated_bug_68354.result (+80/-0)
Percona-Server/mysql-test/suite/federated/federated_bug_68354.test (+79/-0)
Percona-Server/storage/federated/ha_federated.cc (+21/-0)
- Alexey Kopytov (community): Approve
-
Diff: 186 lines (+163/-0) (has conflicts)3 files modifiedPercona-Server/mysql-test/suite/federated/federated_bug_68354.result (+80/-0)
Percona-Server/mysql-test/suite/federated/federated_bug_68354.test (+79/-0)
Percona-Server/storage/federated/ha_federated.cc (+4/-0)
- Alexey Kopytov (community): Approve
-
Diff: 349 lines (+0/-160)3 files modifiedPercona-Server/mysql-test/suite/federated/federated_bug_68354.result (+0/-80)
Percona-Server/mysql-test/suite/federated/federated_bug_68354.test (+0/-79)
Percona-Server/storage/federated/ha_federated.cc (+0/-1)
tags: | added: upstream |
This upstream bug can be related: http:// bugs.mysql. com/bug. php?id= 68354