mariadb/storage/spider
Jacob Mathew 4885baf682 MDEV-16889: Spider Crash mysqld got exception 0xc0000005
The SELECT with the INNER JOIN is executed with one of the two tables being
optimized as a constant table, which is pre-read.  Spider nevertheless attempts
to push down the join to the data node.  The crash occurs because the constant
table is excluded from the optimized query that Spider attempts to push down.

In order for Spider to be able to push down a join, the following conditions
need to be met:
- All of the tables involved in the join need to be included in the optimized
  query that Spider pushes down.  When any of the tables involved in the join
  is a constant table, it is excluded from the optimized query that Spider
  attempts to push down.
- All fields involved in the query need to be members of tables included in the
  optimized query.

I fixed the problem by preventing Spider from pushing down queries that include
a field that is not a member of a table included in the optimized query.  This
solution fixes the reported problem and also fixes other potential problems.

Author:
  Jacob Mathew.

Reviewer:
  Kentoku Shiba.
2018-08-29 17:36:16 -07:00
..
hs_client Merge remote-tracking branch 'origin/bb-10.2-ext' into 10.3 2018-02-04 18:40:06 +04:00
mysql-test/spider MDEV-16889: Spider Crash mysqld got exception 0xc0000005 2018-08-29 17:36:16 -07:00
scripts MDEV-15786: ERROR 1062 (23000) at line 365: Duplicate entry 'spider' for key 'PRIMARY' 2018-07-23 13:57:35 -07:00
CMakeLists.txt Merge branch 'bb-10.2-ext' into 10.3 2018-02-23 08:43:34 +01:00
configure.in MDEV-4438 - Spider storage engine 2013-06-27 15:18:48 +04:00
ha_spider.cc MDEV-16246: insert timestamp into spider table from mysqldump gets wrong time zone. 2018-07-09 16:09:20 -07:00
ha_spider.h MDEV-16246: insert timestamp into spider table from mysqldump gets wrong time zone. 2018-07-09 16:09:20 -07:00
Makefile.am MDEV-4438 - Spider storage engine 2013-06-27 15:18:48 +04:00
spd_conn.cc MDEV-16246: insert timestamp into spider table from mysqldump gets wrong time zone. 2018-07-09 16:09:20 -07:00
spd_conn.h MDEV-16246: insert timestamp into spider table from mysqldump gets wrong time zone. 2018-07-09 16:09:20 -07:00
spd_copy_tables.cc MDEV-15698: Spider ignores syntax errors in connection string in COMMENT field 2018-05-01 18:47:04 -07:00
spd_copy_tables.h merge Spider 3.3.13 2017-12-03 13:58:36 +02:00
spd_db_conn.cc MDEV-16246: insert timestamp into spider table from mysqldump gets wrong time zone. 2018-07-09 16:09:20 -07:00
spd_db_conn.h MDEV-16246: insert timestamp into spider table from mysqldump gets wrong time zone. 2018-07-09 16:09:20 -07:00
spd_db_handlersocket.cc merge Spider 3.3.13 2017-12-03 13:58:36 +02:00
spd_db_handlersocket.h merge Spider 3.3.13 2017-12-03 13:58:36 +02:00
spd_db_include.h MDEV-16889: Spider Crash mysqld got exception 0xc0000005 2018-08-29 17:36:16 -07:00
spd_db_mysql.cc MDEV-16398: Spider Creates Query With Non-Existent Function 2018-08-09 00:04:09 -07:00
spd_db_mysql.h MDEV-16246: insert timestamp into spider table from mysqldump gets wrong time zone. 2018-07-09 16:09:20 -07:00
spd_db_oracle.cc Merge branch '10.2' into 10.3 2018-03-28 17:31:57 +02:00
spd_db_oracle.h MDEV-16246: insert timestamp into spider table from mysqldump gets wrong time zone. 2018-07-09 16:09:20 -07:00
spd_direct_sql.cc MDEV-15698: Spider ignores syntax errors in connection string in COMMENT field 2018-05-01 18:47:04 -07:00
spd_direct_sql.h merge Spider 3.3.13 2017-12-03 13:58:36 +02:00
spd_environ.h Add direct join support for Spider 2017-12-03 13:58:36 +02:00
spd_err.h merge Spider 3.3.13 2017-12-03 13:58:36 +02:00
spd_group_by_handler.cc MDEV-16889: Spider Crash mysqld got exception 0xc0000005 2018-08-29 17:36:16 -07:00
spd_group_by_handler.h merge Spider 3.3.13 2017-12-03 13:58:36 +02:00
spd_i_s.cc promote Spider to "stable" 2018-05-22 15:55:48 +02:00
spd_include.h MDEV-16246: insert timestamp into spider table from mysqldump gets wrong time zone. 2018-07-09 16:09:20 -07:00
spd_malloc.cc merge Spider 3.3.13 2017-12-03 13:58:36 +02:00
spd_malloc.h MDEV-7914: spider/bg.ha, spider/bg.ha_part crash server sporadically in buildbot 2018-04-03 18:41:39 -07:00
spd_param.cc MDEV-16246: insert timestamp into spider table from mysqldump gets wrong time zone. 2018-07-09 16:09:20 -07:00
spd_param.h MDEV-16246: insert timestamp into spider table from mysqldump gets wrong time zone. 2018-07-09 16:09:20 -07:00
spd_ping_table.cc MDEV-12900: spider tests failed in buildbot with valgrind 2018-05-21 17:30:39 -07:00
spd_ping_table.h merge Spider 3.3.13 2017-12-03 13:58:36 +02:00
spd_sys_table.cc Fixed compiler warnings in spider 2018-05-06 16:22:38 +03:00
spd_sys_table.h merge Spider 3.3.13 2017-12-03 13:58:36 +02:00
spd_table.cc MDEV-16398: Spider Creates Query With Non-Existent Function 2018-08-09 00:04:09 -07:00
spd_table.h MDEV-15698: Spider ignores syntax errors in connection string in COMMENT field 2018-05-01 18:47:04 -07:00
spd_trx.cc MDEV-16246: insert timestamp into spider table from mysqldump gets wrong time zone. 2018-07-09 16:09:20 -07:00
spd_trx.h merge Spider 3.3.13 2017-12-03 13:58:36 +02:00
spd_udf.cc merge Spider 3.3.13 2017-12-03 13:58:36 +02:00
spd_udf.def MDEV-4438 - Spider storage engine 2013-06-27 15:18:48 +04:00
spd_udf.h merge Spider 3.3.13 2017-12-03 13:58:36 +02:00