MariaDB [test]> CREATE OR REPLACE TABLE user (
|
-> username VARCHAR(50) NOT NULL
|
-> , password VARCHAR(50) NOT NULL
|
-> )
|
-> ENGINE = SPIDER;
|
Query OK, 0 rows affected (0.12 sec)
|
|
MariaDB [test]> SELECT * FROM user;
|
I beleive that the table should not be created, since the COMMENT clause misses.
The query waits forever. Note that even KILL HARD, in some cases, does not kill the query/process.
{"report":{"fcp":1073.5,"ttfb":316,"pageVisibility":"visible","entityId":37500,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"aaf46c30-47e4-4f29-ae2b-e4ae7e35b277","navigationType":0,"readyForUser":1144.5999999046326,"redirectCount":0,"resourceLoadedEnd":1392.1999998092651,"resourceLoadedStart":327.90000009536743,"resourceTiming":[{"duration":274.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":327.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":327.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":602.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":274.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":328.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":328.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":602.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":282.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":328.2999997138977,"connectEnd":328.2999997138977,"connectStart":328.2999997138977,"domainLookupEnd":328.2999997138977,"domainLookupStart":328.2999997138977,"fetchStart":328.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":328.2999997138977,"responseEnd":611.1999998092651,"responseStart":611.1999998092651,"secureConnectionStart":328.2999997138977},{"duration":361.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":328.90000009536743,"connectEnd":328.90000009536743,"connectStart":328.90000009536743,"domainLookupEnd":328.90000009536743,"domainLookupStart":328.90000009536743,"fetchStart":328.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":328.90000009536743,"responseEnd":690.0999999046326,"responseStart":690.0999999046326,"secureConnectionStart":328.90000009536743},{"duration":364.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":329,"connectEnd":329,"connectStart":329,"domainLookupEnd":329,"domainLookupStart":329,"fetchStart":329,"redirectEnd":0,"redirectStart":0,"requestStart":329,"responseEnd":693.4000000953674,"responseStart":693.4000000953674,"secureConnectionStart":329},{"duration":364.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":329.19999980926514,"connectEnd":329.19999980926514,"connectStart":329.19999980926514,"domainLookupEnd":329.19999980926514,"domainLookupStart":329.19999980926514,"fetchStart":329.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":329.19999980926514,"responseEnd":693.6999998092651,"responseStart":693.6999998092651,"secureConnectionStart":329.19999980926514},{"duration":364.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":329.40000009536743,"connectEnd":329.40000009536743,"connectStart":329.40000009536743,"domainLookupEnd":329.40000009536743,"domainLookupStart":329.40000009536743,"fetchStart":329.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":329.40000009536743,"responseEnd":694.0999999046326,"responseStart":694.0999999046326,"secureConnectionStart":329.40000009536743},{"duration":424.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":329.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":329.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":754.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":364.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":329.69999980926514,"connectEnd":329.69999980926514,"connectStart":329.69999980926514,"domainLookupEnd":329.69999980926514,"domainLookupStart":329.69999980926514,"fetchStart":329.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":329.69999980926514,"responseEnd":694.5,"responseStart":694.5,"secureConnectionStart":329.69999980926514},{"duration":424.2999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":329.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":329.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":754.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":365.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":329.90000009536743,"connectEnd":329.90000009536743,"connectStart":329.90000009536743,"domainLookupEnd":329.90000009536743,"domainLookupStart":329.90000009536743,"fetchStart":329.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":329.90000009536743,"responseEnd":695.0999999046326,"responseStart":695.0999999046326,"secureConnectionStart":329.90000009536743},{"duration":583.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":339.69999980926514,"connectEnd":339.69999980926514,"connectStart":339.69999980926514,"domainLookupEnd":339.69999980926514,"domainLookupStart":339.69999980926514,"fetchStart":339.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":339.69999980926514,"responseEnd":923.1999998092651,"responseStart":923.1999998092651,"secureConnectionStart":339.69999980926514},{"duration":1033,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":344,"connectEnd":344,"connectStart":344,"domainLookupEnd":344,"domainLookupStart":344,"fetchStart":344,"redirectEnd":0,"redirectStart":0,"requestStart":344,"responseEnd":1377,"responseStart":1377,"secureConnectionStart":344},{"duration":158.30000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":765.1999998092651,"connectEnd":765.1999998092651,"connectStart":765.1999998092651,"domainLookupEnd":765.1999998092651,"domainLookupStart":765.1999998092651,"fetchStart":765.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":765.1999998092651,"responseEnd":923.5,"responseStart":923.5,"secureConnectionStart":765.1999998092651},{"duration":370,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1022.1999998092651,"connectEnd":1022.1999998092651,"connectStart":1022.1999998092651,"domainLookupEnd":1022.1999998092651,"domainLookupStart":1022.1999998092651,"fetchStart":1022.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1022.1999998092651,"responseEnd":1392.1999998092651,"responseStart":1392.1999998092651,"secureConnectionStart":1022.1999998092651}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":136,"responseStart":316,"responseEnd":344,"domLoading":319,"domInteractive":1416,"domContentLoadedEventStart":1416,"domContentLoadedEventEnd":1465,"domComplete":1746,"loadEventStart":1746,"loadEventEnd":1747,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1378.7999997138977},{"name":"bigPipe.sidebar-id.end","time":1379.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1379.7999997138977},{"name":"bigPipe.activity-panel-pipe-id.end","time":1383.9000000953674},{"name":"activityTabFullyLoaded","time":1480.4000000953674}],"measures":[],"correlationId":"c7222a0e9b1f22","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":110,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I don't think the problem is the lack of COMMENT as such, but that with the default connection values it attempts to connect the table to itself (to use the same table as a backend table).
On my machine, with the absence of COMMENT, I'm getting an error message:
But with 127.0.0.1 as a host, it hangs as described:
CPU usage is high.
Stack trace from the running process:
Thread 3 (Thread 0x7fe97ce75700 (LWP 10826)):
#0 0x00007fe97b03fe33 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=600000) at ../sysdeps/unix/sysv/linux/poll.c:87
#1 0x0000000000e84688 in vio_io_wait (vio=0x7fe95f7a8d70, event=VIO_IO_EVENT_READ, timeout=600000) at 10.0/vio/viosocket.c:969
#2 0x0000000000e8310d in vio_socket_io_wait (vio=0x7fe95f7a8d70, event=VIO_IO_EVENT_READ) at 10.0/vio/viosocket.c:108
#3 0x0000000000e832bd in vio_read (vio=0x7fe95f7a8d70, buf=0x7fe964b18070 "\a", size=16384) at 10.0/vio/viosocket.c:181
#4 0x0000000000e834b7 in vio_read_buff (vio=0x7fe95f7a8d70, buf=0x7fe964b71070 "*", size=4) at 10.0/vio/viosocket.c:223
#5 0x00000000005c7bf7 in my_real_read (net=0x7fe964a68470, complen=0x7fe97ce720b0) at 10.0/sql/net_serv.cc:870
#6 0x00000000005c831a in my_net_read (net=0x7fe964a68470) at 10.0/sql/net_serv.cc:1072
#7 0x0000000000826a87 in cli_safe_read (mysql=0x7fe964a68470) at 10.0/sql-common/client.c:767
#8 0x000000000082db12 in cli_read_query_result (mysql=0x7fe964a68470) at 10.0/sql-common/client.c:4108
#9 0x000000000082dfaf in mysql_real_query (mysql=0x7fe964a68470, query=0x7fe964b153b0 "show table status from `test` like 'user'", length=41) at 10.0/sql-common/client.c:4194
#10 0x00007fe94ed92932 in spider_db_mysql::exec_query (this=0x7fe964b06af0, query=0x7fe964b153b0 "show table status from `test` like 'user'", length=41, quick_mode=-1) at 10.0/storage/spider/spd_db_mysql.cc:1554
#11 0x00007fe94ecf93f6 in spider_db_query (conn=0x7fe95fa17680, query=0x7fe964b153b0 "show table status from `test` like 'user'", length=41, quick_mode=-1, need_mon=0x7fe965bbb310) at 10.0/storage/spider/spd_db_conn.cc:611
#12 0x00007fe94edb0e0b in spider_mysql_handler::show_table_status (this=0x7fe964b79a70, link_idx=0, sts_mode=1, flag=88) at 10.0/storage/spider/spd_db_mysql.cc:9862
#13 0x00007fe94ed09157 in spider_db_show_table_status (spider=0x7fe964ab2088, link_idx=0, sts_mode=1, flag=88) at 10.0/storage/spider/spd_db_conn.cc:5173
#14 0x00007fe94ed42bbd in spider_get_sts (share=0x7fe95fa64080, link_idx=0, tmp_time=1401180942, spider=0x7fe964ab2088, sts_interval=10, sts_mode=1, sts_sync=0, sts_sync_level=1, flag=88) at 10.0/storage/spider/spd_table.cc:6721
#15 0x00007fe94ed3c8c4 in spider_get_share (table_name=0x7fe964aea880 "./test/user", table=0x7fe964ab0870, thd=0x7fe95f3f7070, spider=0x7fe964ab2088, error_num=0x7fe97ce72e6c) at 10.0/storage/spider/spd_table.cc:4571
#16 0x00007fe94ed62f87 in ha_spider::open (this=0x7fe964ab2088, name=0x7fe964aea880 "./test/user", mode=2, test_if_locked=18) at 10.0/storage/spider/ha_spider.cc:333
#17 0x0000000000864476 in handler::ha_open (this=0x7fe964ab2088, table_arg=0x7fe964ab0870, name=0x7fe964aea880 "./test/user", mode=2, test_if_locked=18) at 10.0/sql/handler.cc:2468
#18 0x000000000074f832 in open_table_from_share (thd=0x7fe95f3f7070, share=0x7fe964aea288, alias=0x7fe95fa84268 "user", db_stat=39, prgflag=44, ha_open_flags=18, outparam=0x7fe964ab0870, is_create_table=false) at 10.0/sql/table.cc:2851
#19 0x00000000006152de in open_table (thd=0x7fe95f3f7070, table_list=0x7fe95fa84270, mem_root=0x7fe97ce73580, ot_ctx=0x7fe97ce73540) at 10.0/sql/sql_base.cc:2459
#20 0x000000000061796b in open_and_process_table (thd=0x7fe95f3f7070, lex=0x7fe95f3facb0, tables=0x7fe95fa84270, counter=0x7fe97ce73694, flags=0, prelocking_strategy=0x7fe97ce736d0, has_prelocking_list=false, ot_ctx=0x7fe97ce73540, new_frm_mem=0x7fe97ce73580) at 10.0/sql/sql_base.cc:3917
#21 0x0000000000618b4d in open_tables (thd=0x7fe95f3f7070, start=0x7fe97ce73650, counter=0x7fe97ce73694, flags=0, prelocking_strategy=0x7fe97ce736d0) at 10.0/sql/sql_base.cc:4459
#22 0x0000000000619a56 in open_and_lock_tables (thd=0x7fe95f3f7070, tables=0x7fe95fa84270, derived=true, flags=0, prelocking_strategy=0x7fe97ce736d0) at 10.0/sql/sql_base.cc:5076
#23 0x000000000060e0ef in open_and_lock_tables (thd=0x7fe95f3f7070, tables=0x7fe95fa84270, derived=true, flags=0) at 10.0/sql/sql_base.h:485
#24 0x000000000067c958 in execute_sqlcom_select (thd=0x7fe95f3f7070, all_tables=0x7fe95fa84270) at 10.0/sql/sql_parse.cc:5208
#25 0x0000000000674fe4 in mysql_execute_command (thd=0x7fe95f3f7070) at 10.0/sql/sql_parse.cc:2554
#26 0x000000000067f377 in mysql_parse (thd=0x7fe95f3f7070, rawbuf=0x7fe95fa84088 "SELECT * FROM user", length=18, parser_state=0x7fe97ce74610) at 10.0/sql/sql_parse.cc:6409
#27 0x0000000000672285 in dispatch_command (command=COM_QUERY, thd=0x7fe95f3f7070, packet=0x7fe964b0e071 "SELECT * FROM user", packet_length=18) at 10.0/sql/sql_parse.cc:1309
#28 0x000000000067162a in do_command (thd=0x7fe95f3f7070) at 10.0/sql/sql_parse.cc:1006
#29 0x000000000078caf1 in do_handle_one_connection (thd_arg=0x7fe95f3f7070) at 10.0/sql/sql_connect.cc:1379
#30 0x000000000078c844 in handle_one_connection (arg=0x7fe95f3f7070) at 10.0/sql/sql_connect.cc:1293
#31 0x0000000000cb9cca in pfs_spawn_thread (arg=0x7fe95f7a53f0) at 10.0/storage/perfschema/pfs.cc:1860
#32 0x00007fe97cb52b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#33 0x00007fe97b04aa7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#34 0x0000000000000000 in ?? ()
Thread 2 (Thread 0x7fe97ce2c700 (LWP 10828)):
#0 0x00007fe97b044573 in select () at ../sysdeps/unix/syscall-template.S:82
#1 0x0000000000e33533 in my_sleep (m_seconds=10) at 10.0/mysys/my_sleep.c:29
#2 0x00007fe94ed3c9d3 in spider_get_share (table_name=0x7fe964aea880 "./test/user", table=0x7fe95e101c70, thd=0x7fe964bec070, spider=0x7fe95e102888, error_num=0x7fe97ce27e4c) at 10.0/storage/spider/spd_table.cc:4648
#3 0x00007fe94ed62f87 in ha_spider::open (this=0x7fe95e102888, name=0x7fe964aea880 "./test/user", mode=2, test_if_locked=18) at 10.0/storage/spider/ha_spider.cc:333
#4 0x0000000000864476 in handler::ha_open (this=0x7fe95e102888, table_arg=0x7fe95e101c70, name=0x7fe964aea880 "./test/user", mode=2, test_if_locked=18) at 10.0/sql/handler.cc:2468
#5 0x000000000074f832 in open_table_from_share (thd=0x7fe964bec070, share=0x7fe964aea288, alias=0x7fe95e0dacb0 "user", db_stat=39, prgflag=44, ha_open_flags=18, outparam=0x7fe95e101c70, is_create_table=false) at 10.0/sql/table.cc:2851
#6 0x00000000006152de in open_table (thd=0x7fe964bec070, table_list=0x7fe95e0f5088, mem_root=0x7fe97ce28560, ot_ctx=0x7fe97ce28520) at 10.0/sql/sql_base.cc:2459
#7 0x000000000061796b in open_and_process_table (thd=0x7fe964bec070, lex=0x7fe97ce28740, tables=0x7fe95e0f5088, counter=0x7fe97ce2867c, flags=1026, prelocking_strategy=0x7fe97ce28680, has_prelocking_list=false, ot_ctx=0x7fe97ce28520, new_frm_mem=0x7fe97ce28560) at 10.0/sql/sql_base.cc:3917
#8 0x0000000000618b4d in open_tables (thd=0x7fe964bec070, start=0x7fe97ce28630, counter=0x7fe97ce2867c, flags=1026, prelocking_strategy=0x7fe97ce28680) at 10.0/sql/sql_base.cc:4459
#9 0x0000000000619c87 in open_normal_and_derived_tables (thd=0x7fe964bec070, tables=0x7fe95e0f5088, flags=1026, dt_phases=34) at 10.0/sql/sql_base.cc:5139
#10 0x00000000006f8c92 in fill_schema_table_by_open (thd=0x7fe964bec070, is_show_fields_or_keys=false, table=0x7fe95e085088, schema_table=0x16a3a40, orig_db_name=0x7fe97ce29c30, orig_table_name=0x7fe95e0dac50, open_tables_state_backup=0x7fe97ce29c60, can_deadlock=false) at 10.0/sql/sql_show.cc:4183
#11 0x00000000006fa1c1 in get_all_tables (thd=0x7fe964bec070, tables=0x7fe95e07d970, cond=0x0) at 10.0/sql/sql_show.cc:4839
#12 0x0000000000707a4c in get_schema_tables_result (join=0x7fe95e083a30, executed_place=PROCESSED_BY_JOIN_EXEC) at 10.0/sql/sql_show.cc:8075
#13 0x00000000006aeefd in JOIN::exec_inner (this=0x7fe95e083a30) at 10.0/sql/sql_select.cc:2530
#14 0x00000000006ae4dc in JOIN::exec (this=0x7fe95e083a30) at 10.0/sql/sql_select.cc:2365
#15 0x00000000006b1873 in mysql_select (thd=0x7fe964bec070, rref_pointer_array=0x7fe964bf06d8, tables=0x7fe95e07d970, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2684619520, result=0x7fe95e083a10, unit=0x7fe964befd78, select_lex=0x7fe964bf0460) at 10.0/sql/sql_select.cc:3303
#16 0x00000000006a7e73 in handle_select (thd=0x7fe964bec070, lex=0x7fe964befcb0, result=0x7fe95e083a10, setup_tables_done_option=0) at 10.0/sql/sql_select.cc:372
#17 0x000000000067cbed in execute_sqlcom_select (thd=0x7fe964bec070, all_tables=0x7fe95e07d970) at 10.0/sql/sql_parse.cc:5263
#18 0x0000000000674fe4 in mysql_execute_command (thd=0x7fe964bec070) at 10.0/sql/sql_parse.cc:2554
#19 0x000000000067f377 in mysql_parse (thd=0x7fe964bec070, rawbuf=0x7fe95e07c088 "show table status from `test` like 'user'", length=41, parser_state=0x7fe97ce2b610) at 10.0/sql/sql_parse.cc:6409
#20 0x0000000000672285 in dispatch_command (command=COM_QUERY, thd=0x7fe964bec070, packet=0x7fe964b4b071 "show table status from `test` like 'user'", packet_length=41) at 10.0/sql/sql_parse.cc:1309
#21 0x000000000067162a in do_command (thd=0x7fe964bec070) at 10.0/sql/sql_parse.cc:1006
#22 0x000000000078caf1 in do_handle_one_connection (thd_arg=0x7fe964bec070) at 10.0/sql/sql_connect.cc:1379
#23 0x000000000078c844 in handle_one_connection (arg=0x7fe964bec070) at 10.0/sql/sql_connect.cc:1293
#24 0x0000000000cb9cca in pfs_spawn_thread (arg=0x7fe95f7a62f0) at 10.0/storage/perfschema/pfs.cc:1860
#25 0x00007fe97cb52b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#26 0x00007fe97b04aa7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#27 0x0000000000000000 in ?? ()
Stack trace from:
revision-id: elenst@montyprogram.com-20140526184135-hrn5hsqvvuk1eyf0
date: 2014-05-26 22:41:35 +0400
build-date: 2014-05-27 13:08:16 +0400
revno: 4212
branch-nick: 10.0
Processlist:
MariaDB [test]> show full processlist;
+----+------+-----------------+------+---------+------+----------------+-------------------------------------------+----------+
| Id | User | Host | db | Command | Time | State | Info | Progress |
+----+------+-----------------+------+---------+------+----------------+-------------------------------------------+----------+
| 4 | root | localhost:58610 | test | Query | 154 | closing tables | SELECT * FROM user | 0.000 |
| 5 | | localhost:58611 | test | Query | 154 | Opening tables | show table status from `test` like 'user' | 0.000 |
| 6 | root | localhost:58613 | test | Query | 0 | init | show full processlist | 0.000 |
+----+------+-----------------+------+---------+------+----------------+-------------------------------------------+----------+
Locks:
MariaDB [test]> select * from information_schema.metadata_lock_info;
+-----------+----------------------+-----------------+---------------------+--------------+------------+
| THREAD_ID | LOCK_MODE | LOCK_DURATION | LOCK_TYPE | TABLE_SCHEMA | TABLE_NAME |
+-----------+----------------------+-----------------+---------------------+--------------+------------+
| 4 | MDL_SHARED_READ | MDL_TRANSACTION | Table metadata lock | test | user |
| 5 | MDL_SHARED_HIGH_PRIO | MDL_TRANSACTION | Table metadata lock | test | user |
| 7 | MDL_SHARED_HIGH_PRIO | MDL_TRANSACTION | Table metadata lock | test | user |
+-----------+----------------------+-----------------+---------------------+--------------+------------+
3 rows in set (0.00 sec)