[MCOL-1040] ERROR 2013 (HY000): Lost connection to MySQL server during query Created: 2017-11-19 Updated: 2017-12-05 Resolved: 2017-12-05 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.0.12, 1.1.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | hiller1 | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Sprint: | 2017-24 |
| Description |
|
I hava a super big SQL,30 table left join max_allowed_packet = 1G run this super big SQL,result is : ERROR 2006 (HY000): MySQL server has gone away ERROR 2013 (HY000): Lost connection to MySQL server during query |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2017-11-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Can you please provide more information on this one, specifically:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by hiller1 [ 2017-11-20 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
columnstoreSupportReport.columnstore-1.tar.gz Server version: 10.1.26-MariaDB Columnstore 1.0.11-1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by hiller1 [ 2017-11-20 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
sql_by_day.sql | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2017-11-20 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Many thanks for the information. OK, so, this is a crash that appears to be happening when linking the return columns from a subquery to the parent query during ColumnStore's optimisation phase. Unfortunately there is not enough information in the logs to explain where in the query and why this is happening. Can you please send us the "SHOW CREATE TABLE" output for the tables involved? We should be able to reproduce it from this and track down where and why it is happening. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by hiller1 [ 2017-11-20 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
all.sql.gz /usr/local/mariadb/columnstore/mysql/bin/mysqldump --defaults-extra-file=/usr/local/mariadb/columnstore/mysql/my.cnf --single-transaction -uroot -d -A > all.sql | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2017-11-29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Crash happens in replaceRefCol() on this line:
sc is finup_core.lend_repay_record.repaid_time. sc->colPosition() is -1 hence the crash.
Simplified down to just this part:
It is the TIMESTAMPDIFF on lh02.repaid_time that is triggering it, not sure why yet. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2017-11-29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Most simplified form of test case:
The key piece here is the mcs.c being inside the timestampdiff, I can't find a way to trigger it if it is mcol1040.c or if the c is a different WHERE condition. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2017-11-29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Problem appears to be an assumption about what is and is not a derived column. Pull request for 1.0, will merge up to 1.1 in regular cycle. For QA: See my simplified test case in my previous comment. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2017-12-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Builds verified: github source [root@localhost ~]# cat mariadb-columnstore-1.0.12-1-centos7.x86_64.bin.tar.txt Merge pull request #79 from mariadb-corporation/ /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #338 from mariadb-corporation/ 1.1.3-1 /root/columnstore/mariadb-columnstore-server Merge branch 'develop-1.1' of https://github.com/mariadb-corporation/mariadb-columnstore-server into develop-1.1 /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine change how the os_detect is run on remote nodes Reproduced the issue in 1.1.0-1 and verified it has been fixed in 1.0.12 and 1.1.3. |