See also MDEV-4468.
SELECT from a federated table pointing at a sequence table crashes the same way as it does with a non-existent table (which is what MDEV-4468 is about)
mysqld: /home/elenst/bzr/10.0/sql/mysqld.cc:3346: void my_message_sql(uint, const char*, myf): Assertion `error != 0' failed.
|
130502 2:01:47 [ERROR] mysqld got signal 6 ;
|
#7 0x00007f2e10c96192 in __GI___assert_fail (assertion=0xe38d1a "error != 0", file=0xe38230 "/home/elenst/bzr/10.0/sql/mysqld.cc", line=3346, function=0xe3f740 "void my_message_sql(uint, const char*, myf)") at assert.c:103
|
#8 0x000000000056a18f in my_message_sql (error=0, str=0x7f2dc7ffd050 "Received error: 0 : ", MyFlags=0) at /home/elenst/bzr/10.0/sql/mysqld.cc:3346
|
#9 0x0000000000dc5808 in my_printf_error (error=0, format=0xf5a8b8 "Received error: %d : %s", MyFlags=0) at /home/elenst/bzr/10.0/mysys/my_error.c:124
|
#10 0x0000000000b34fac in ha_federatedx::info (this=0x7f2ddc00c470, flag=18) at /home/elenst/bzr/10.0/storage/federatedx/ha_federatedx.cc:3089
|
#11 0x00000000007033dd in TABLE_LIST::fetch_number_of_rows (this=0x7f2ddc007110) at /home/elenst/bzr/10.0/sql/table.cc:6765
|
#12 0x000000000065c4dd in make_join_statistics (join=0x7f2ddc010a40, tables_list=..., conds=0x0, keyuse_array=0x7f2ddc010d78) at /home/elenst/bzr/10.0/sql/sql_select.cc:3358
|
#13 0x0000000000655168 in JOIN::optimize_inner (this=0x7f2ddc010a40) at /home/elenst/bzr/10.0/sql/sql_select.cc:1301
|
#14 0x000000000065410e in JOIN::optimize (this=0x7f2ddc010a40) at /home/elenst/bzr/10.0/sql/sql_select.cc:1003
|
#15 0x000000000065bdca in mysql_select (thd=0x2eb66b8, rref_pointer_array=0x2eb9c48, tables=0x7f2ddc007110, wild_num=1, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f2ddc0109f0, unit=0x2eb92a0, select_lex=0x2eb9998) at /home/elenst/bzr/10.0/sql/sql_select.cc:3215
|
#16 0x000000000065257f in handle_select (thd=0x2eb66b8, lex=0x2eb91e8, result=0x7f2ddc0109f0, setup_tables_done_option=0) at /home/elenst/bzr/10.0/sql/sql_select.cc:371
|
#17 0x0000000000627707 in execute_sqlcom_select (thd=0x2eb66b8, all_tables=0x7f2ddc007110) at /home/elenst/bzr/10.0/sql/sql_parse.cc:5021
|
#18 0x000000000061fd29 in mysql_execute_command (thd=0x2eb66b8) at /home/elenst/bzr/10.0/sql/sql_parse.cc:2482
|
#19 0x0000000000629fc6 in mysql_parse (thd=0x2eb66b8, rawbuf=0x7f2ddc012070 "select * from fed", length=17, parser_state=0x7f2dc7ffe550) at /home/elenst/bzr/10.0/sql/sql_parse.cc:6154
|
#20 0x000000000061cf0e in dispatch_command (command=COM_QUERY, thd=0x2eb66b8, packet=0x2ebaa89 "select * from fed", packet_length=17) at /home/elenst/bzr/10.0/sql/sql_parse.cc:1274
|
#21 0x000000000061c384 in do_command (thd=0x2eb66b8) at /home/elenst/bzr/10.0/sql/sql_parse.cc:983
|
#22 0x0000000000736cc5 in do_handle_one_connection (thd_arg=0x2eb66b8) at /home/elenst/bzr/10.0/sql/sql_connect.cc:1267
|
#23 0x0000000000736a18 in handle_one_connection (arg=0x2eb66b8) at /home/elenst/bzr/10.0/sql/sql_connect.cc:1181
|
#24 0x00007f2e11c7ce9a in start_thread (arg=0x7f2dc7fff700) at pthread_create.c:308
|
#25 0x00007f2e10d5acbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
Test case:
# Run with --sequence and --federated:
|
# perl ./mtr --mysqld=--federated --mysqld=--sequence <test name>
|
|
eval create table fed engine=Federated connection='mysql://root@localhost:$MASTER_MYPORT/test/seq_1_to_2';
|
select * from fed;
|
revision-id: knielsen@knielsen-hq.org-20130429100354-0kujsw18axni9syq
|
revno: 3748
|
branch-nick: 10.0
|
{"report":{"fcp":1015.3999996185303,"ttfb":147.19999980926514,"pageVisibility":"visible","entityId":24017,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"b69bd9bd-99ff-4eba-97a2-0e29ec2a7881","navigationType":0,"readyForUser":1098.5,"redirectCount":0,"resourceLoadedEnd":1307.7999992370605,"resourceLoadedStart":151.89999961853027,"resourceTiming":[{"duration":402.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":151.89999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":151.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":554.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":402,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":152.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":152.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":554.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":411.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":152.29999923706055,"connectEnd":152.29999923706055,"connectStart":152.29999923706055,"domainLookupEnd":152.29999923706055,"domainLookupStart":152.29999923706055,"fetchStart":152.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":152.29999923706055,"responseEnd":564.1999998092651,"responseStart":564.1999998092651,"secureConnectionStart":152.29999923706055},{"duration":445.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":152.39999961853027,"connectEnd":152.39999961853027,"connectStart":152.39999961853027,"domainLookupEnd":152.39999961853027,"domainLookupStart":152.39999961853027,"fetchStart":152.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":152.39999961853027,"responseEnd":598.1999998092651,"responseStart":598.1999998092651,"secureConnectionStart":152.39999961853027},{"duration":449.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":152.5,"connectEnd":152.5,"connectStart":152.5,"domainLookupEnd":152.5,"domainLookupStart":152.5,"fetchStart":152.5,"redirectEnd":0,"redirectStart":0,"requestStart":152.5,"responseEnd":602.0999994277954,"responseStart":602.0999994277954,"secureConnectionStart":152.5},{"duration":449.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":152.5999994277954,"connectEnd":152.5999994277954,"connectStart":152.5999994277954,"domainLookupEnd":152.5999994277954,"domainLookupStart":152.5999994277954,"fetchStart":152.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":152.5999994277954,"responseEnd":602.5,"responseStart":602.5,"secureConnectionStart":152.5999994277954},{"duration":450.0999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":152.69999980926514,"connectEnd":152.69999980926514,"connectStart":152.69999980926514,"domainLookupEnd":152.69999980926514,"domainLookupStart":152.69999980926514,"fetchStart":152.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":152.69999980926514,"responseEnd":602.7999992370605,"responseStart":602.7999992370605,"secureConnectionStart":152.69999980926514},{"duration":449.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":157.89999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":157.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":607.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":445.29999923706055,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":158,"connectEnd":158,"connectStart":158,"domainLookupEnd":158,"domainLookupStart":158,"fetchStart":158,"redirectEnd":0,"redirectStart":0,"requestStart":158,"responseEnd":603.2999992370605,"responseStart":603.2999992370605,"secureConnectionStart":158},{"duration":449.5999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":158.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":158.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":607.7999992370605,"responseStart":0,"secureConnectionStart":0},{"duration":445.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":158.19999980926514,"connectEnd":158.19999980926514,"connectStart":158.19999980926514,"domainLookupEnd":158.19999980926514,"domainLookupStart":158.19999980926514,"fetchStart":158.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":158.19999980926514,"responseEnd":603.7999992370605,"responseStart":603.7999992370605,"secureConnectionStart":158.19999980926514},{"duration":884.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":158.89999961853027,"connectEnd":158.89999961853027,"connectStart":158.89999961853027,"domainLookupEnd":158.89999961853027,"domainLookupStart":158.89999961853027,"fetchStart":158.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":158.89999961853027,"responseEnd":1043.1999998092651,"responseStart":1043.1999998092651,"secureConnectionStart":158.89999961853027},{"duration":1148.7999992370605,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":159,"connectEnd":159,"connectStart":159,"domainLookupEnd":159,"domainLookupStart":159,"fetchStart":159,"redirectEnd":0,"redirectStart":0,"requestStart":159,"responseEnd":1307.7999992370605,"responseStart":1307.7999992370605,"secureConnectionStart":159},{"duration":518.1999998092651,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":788.8999996185303,"connectEnd":788.8999996185303,"connectStart":788.8999996185303,"domainLookupEnd":788.8999996185303,"domainLookupStart":788.8999996185303,"fetchStart":788.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":788.8999996185303,"responseEnd":1307.0999994277954,"responseStart":1307.0999994277954,"secureConnectionStart":788.8999996185303},{"duration":322,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":991,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":991,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1313,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":4,"responseStart":148,"responseEnd":157,"domLoading":151,"domInteractive":1335,"domContentLoadedEventStart":1335,"domContentLoadedEventEnd":1372,"domComplete":2552,"loadEventStart":2552,"loadEventEnd":2554,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1317.0999994277954},{"name":"bigPipe.sidebar-id.end","time":1318},{"name":"bigPipe.activity-panel-pipe-id.start","time":1318.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1320.5999994277954},{"name":"activityTabFullyLoaded","time":1378.5999994277954}],"measures":[],"correlationId":"78298efb66717e","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":75,"dbReadsTimeInMs":11,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}