CREATE VIEW v AS SELECT table_schema AS object_schema, table_name AS object_name, table_type AS object_type FROM information_schema.tables ORDER BY object_schema;
SELECT * FROM v LIMIT ROWS EXAMINED 9;
Sporadically (it needs about 100 repeats to reproduce) leads to:
e_name=<optimized out>) at /test/10.5_dbg/sql/sql_show.cc:5690
#10 0x00005594da3f4e3a in fill_schema_table_by_open (thd=thd@entry=0x14e2d0000d78, mem_root=mem_root@entry=0x14e2fd9aee20, is_show_fields_or_keys=is_show_fields_or_keys
@entry=false, table=table@entry=0x14e2d0023bf0, schema_table=schema_table@entry=0x5594dbaede00 <schema_tables+2048>, orig_db_name=orig_db_name@entry=0x14e2d00520f0, ori
g_table_name=0x14e2d0053338, open_tables_state_backup=0x14e2fd9aee60, can_deadlock=true) at /test/10.5_dbg/sql/sql_show.cc:4641
#11 0x00005594da40b1a5 in get_all_tables (thd=0x14e2d0000d78, tables=0x14e2d0016a18, cond=<optimized out>) at /test/10.5_dbg/sql/sql_show.cc:5245
#12 0x00005594da40c4dc in get_schema_tables_result (join=join@entry=0x14e2d0018220, executed_place=executed_place@entry=PROCESSED_BY_JOIN_EXEC) at /test/10.5_dbg/sql/sq
l_show.cc:8698
#13 0x00005594da3df391 in JOIN::exec_inner (this=this@entry=0x14e2d0018220) at /test/10.5_dbg/sql/sql_select.cc:4416
#14 0x00005594da3dfd39 in JOIN::exec (this=this@entry=0x14e2d0018220) at /test/10.5_dbg/sql/sql_select.cc:4240
#15 0x00005594da3de084 in mysql_select (thd=thd@entry=0x14e2d0000d78, tables=0x14e2d0012f70, fields=@0x14e2d0012ad0: {<base_list> = {<Sql_alloc> = {<No data fields>}, f
irst = 0x14e2d0012f28, last = 0x14e2d0042870, elements = 3}, <No data fields>}, conds=0x0, og_num=1, order=<optimized out>, group=0x0, having=0x0, proc_param=0x0, selec
t_options=2147748608, result=0x14e2d00181f8, unit=0x14e2d0004f18, select_lex=0x14e2d0012980) at /test/10.5_dbg/sql/sql_select.cc:4655
#16 0x00005594da3de348 in handle_select (thd=thd@entry=0x14e2d0000d78, lex=lex@entry=0x14e2d0004e50, result=result@entry=0x14e2d00181f8, setup_tables_done_option=setup_tables_done_option@entry=0) at /test/10.5_dbg/sql/sql_select.cc:417
#17 0x00005594da364b14 in execute_sqlcom_select (thd=thd@entry=0x14e2d0000d78, all_tables=0x14e2d0012f70) at /test/10.5_dbg/sql/sql_parse.cc:6266
#18 0x00005594da35db44 in mysql_execute_command (thd=thd@entry=0x14e2d0000d78) at /test/10.5_dbg/sql/sql_parse.cc:3968
#19 0x00005594da36aa98 in mysql_parse (thd=thd@entry=0x14e2d0000d78, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14e2fd9b1390, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:8044
#20 0x00005594da3573af in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14e2d0000d78, packet=packet@entry=0x14e2d0008f49 "SELECT * FROM v LIMIT ROWS EXAMINED 9", packet_length=packet_length@entry=37, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:1872
#21 0x00005594da355b99 in do_command (thd=0x14e2d0000d78) at /test/10.5_dbg/sql/sql_parse.cc:1353
#22 0x00005594da4b66ef in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5594dee74ac8, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1410
#23 0x00005594da4b6e13 in handle_one_connection (arg=arg@entry=0x5594dee74ac8) at /test/10.5_dbg/sql/sql_connect.cc:1312
#24 0x00005594da922ab2 in pfs_spawn_thread (arg=0x5594ded9de28) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
#25 0x000014e315d606db in start_thread (arg=0x14e2fd9b2700) at pthread_create.c:463
#26 0x000014e31515ea3f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Same patch as the previous.
The assertion failure is happening right before fill_schema_table_by_open() after maximum limit to examine rows is reached, so the if statement can't be moved.
Rucha Deodhar
added a comment - Same patch as the previous.
The assertion failure is happening right before fill_schema_table_by_open() after maximum limit to examine rows is reached, so the if statement can't be moved.
People
Rucha Deodhar
Stepan Patryshev (Inactive)
Votes:
0Vote for this issue
Watchers:
4Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1059.0999999046326,"ttfb":178.09999990463257,"pageVisibility":"visible","entityId":93682,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"1c83f9d3-eec1-4cfe-9363-6d129baa0f93","navigationType":0,"readyForUser":1135.2000000476837,"redirectCount":0,"resourceLoadedEnd":746.5,"resourceLoadedStart":183.59999990463257,"resourceTiming":[{"duration":17.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":183.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":183.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":201,"responseStart":0,"secureConnectionStart":0},{"duration":17.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":183.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":183.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":201.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":440.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/c54b129276d75dc2a3460e1d78f37913-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":183.89999985694885,"connectEnd":183.89999985694885,"connectStart":183.89999985694885,"domainLookupEnd":183.89999985694885,"domainLookupStart":183.89999985694885,"fetchStart":183.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":204.09999990463257,"responseEnd":624.7000000476837,"responseStart":274.5,"secureConnectionStart":183.89999985694885},{"duration":111,"initiatorType":"script","name":"https://jira.mariadb.org/s/ffdb17665775c5b4d6f097f3974ee359-CDN/lu2bsh/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":184.09999990463257,"connectEnd":184.09999990463257,"connectStart":184.09999990463257,"domainLookupEnd":184.09999990463257,"domainLookupStart":184.09999990463257,"fetchStart":184.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":208.5,"responseEnd":295.09999990463257,"responseStart":293.2999999523163,"secureConnectionStart":184.09999990463257},{"duration":542.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/f867843cd2fdb209d4d1d4f760f86346-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":184.09999990463257,"connectEnd":184.09999990463257,"connectStart":184.09999990463257,"domainLookupEnd":184.09999990463257,"domainLookupStart":184.09999990463257,"fetchStart":184.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":204.79999995231628,"responseEnd":726.2999999523163,"responseStart":345.59999990463257,"secureConnectionStart":184.09999990463257},{"duration":115.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":184.29999995231628,"connectEnd":184.29999995231628,"connectStart":184.29999995231628,"domainLookupEnd":184.29999995231628,"domainLookupStart":184.29999995231628,"fetchStart":184.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":211.09999990463257,"responseEnd":300,"responseStart":296.59999990463257,"secureConnectionStart":184.29999995231628},{"duration":23.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bsh/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":184.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":184.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":208.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":115.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":184.39999985694885,"connectEnd":184.39999985694885,"connectStart":184.39999985694885,"domainLookupEnd":184.39999985694885,"domainLookupStart":184.39999985694885,"fetchStart":184.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":210.5,"responseEnd":299.7000000476837,"responseStart":295.39999985694885,"secureConnectionStart":184.39999985694885},{"duration":115.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":184.5,"connectEnd":184.5,"connectStart":184.5,"domainLookupEnd":184.5,"domainLookupStart":184.5,"fetchStart":184.5,"redirectEnd":0,"redirectStart":0,"requestStart":211.5,"responseEnd":300.39999985694885,"responseStart":297.7999999523163,"secureConnectionStart":184.5},{"duration":26.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bsh/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":184.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":184.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":211.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":123.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/81b5d7c27af3ebc078cc4a36383678ba-CDN/lu2bsh/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":184.70000004768372,"connectEnd":184.70000004768372,"connectStart":184.70000004768372,"domainLookupEnd":184.70000004768372,"domainLookupStart":184.70000004768372,"fetchStart":184.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":213.59999990463257,"responseEnd":308.09999990463257,"responseStart":298.7999999523163,"secureConnectionStart":184.70000004768372},{"duration":553.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":190.29999995231628,"connectEnd":190.29999995231628,"connectStart":190.29999995231628,"domainLookupEnd":190.29999995231628,"domainLookupStart":190.29999995231628,"fetchStart":190.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":235.59999990463257,"responseEnd":744.0999999046326,"responseStart":741.7000000476837,"secureConnectionStart":190.29999995231628},{"duration":556.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":190.29999995231628,"connectEnd":190.29999995231628,"connectStart":190.29999995231628,"domainLookupEnd":190.29999995231628,"domainLookupStart":190.29999995231628,"fetchStart":190.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":254.20000004768372,"responseEnd":746.5,"responseStart":745.0999999046326,"secureConnectionStart":190.29999995231628},{"duration":183.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":831.5999999046326,"connectEnd":831.5999999046326,"connectStart":831.5999999046326,"domainLookupEnd":831.5999999046326,"domainLookupStart":831.5999999046326,"fetchStart":831.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":831.5999999046326,"responseEnd":1014.8999998569489,"responseStart":1014.8999998569489,"secureConnectionStart":831.5999999046326}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":17,"responseStart":178,"responseEnd":185,"domLoading":182,"domInteractive":1196,"domContentLoadedEventStart":1196,"domContentLoadedEventEnd":1232,"domComplete":1674,"loadEventStart":1674,"loadEventEnd":1674,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1177.2999999523163},{"name":"bigPipe.sidebar-id.end","time":1178.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1178.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1179.3999998569489},{"name":"activityTabFullyLoaded","time":1246.3999998569489}],"measures":[],"correlationId":"7d0f118bcd8546","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":74,"dbReadsTimeInMs":10,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Patch: https://github.com/MariaDB/server/commit/ab7092a415f11787d10fa25f387fe9c1c272ff46