#7 0x00007fb24db46ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#8 0x0000000000a2f5f3 in maria_extra (info=0x7fb246129070, function=HA_EXTRA_FORCE_REOPEN, extra_arg=0x0) at /data/src/10.0/storage/maria/ma_extra.c:289
#9 0x00000000009ef883 in ha_maria::extra (this=0x7fb24607e888, operation=HA_EXTRA_FORCE_REOPEN) at /data/src/10.0/storage/maria/ha_maria.cc:2609
#10 0x00000000005eadb6 in wait_while_table_is_used (thd=0x7fb247aa2070, table=0x7fb24609fc70, function=HA_EXTRA_FORCE_REOPEN) at /data/src/10.0/sql/sql_base.cc:1844
#11 0x000000000070674b in mysql_alter_table (thd=0x7fb247aa2070, new_db=0x7fb2460fa760 "test", new_name=0x0, create_info=0x7fb24fc154e0, table_list=0x7fb2460fa180, alter_info=0x7fb24fc15450, order_num=0, order=0x0, ignore=false) at /data/src/10.0/sql/sql_table.cc:9016
#12 0x000000000076f695 in Sql_cmd_alter_table::execute (this=0x7fb2460fa778, thd=0x7fb247aa2070) at /data/src/10.0/sql/sql_alter.cc:312
#13 0x0000000000654436 in mysql_execute_command (thd=0x7fb247aa2070) at /data/src/10.0/sql/sql_parse.cc:5118
#14 0x0000000000657a8c in mysql_parse (thd=0x7fb247aa2070, rawbuf=0x7fb2460fa088 "ALTER TABLE t1 FORCE, LOCK=EXCLUSIVE", length=36, parser_state=0x7fb24fc16640) at /data/src/10.0/sql/sql_parse.cc:6637
#15 0x000000000064a3ac in dispatch_command (command=COM_QUERY, thd=0x7fb247aa2070, packet=0x7fb248fe5071 "ALTER TABLE t1 FORCE, LOCK=EXCLUSIVE", packet_length=36) at /data/src/10.0/sql/sql_parse.cc:1300
#16 0x00000000006496ac in do_command (thd=0x7fb247aa2070) at /data/src/10.0/sql/sql_parse.cc:1003
#17 0x000000000076ade8 in do_handle_one_connection (thd_arg=0x7fb247aa2070) at /data/src/10.0/sql/sql_connect.cc:1377
#18 0x000000000076ab5a in handle_one_connection (arg=0x7fb247aa2070) at /data/src/10.0/sql/sql_connect.cc:1292
#19 0x0000000000acc902 in pfs_spawn_thread (arg=0x7fb2479a2370) at /data/src/10.0/storage/perfschema/pfs.cc:1861
#20 0x00007fb24f84a494 in start_thread (arg=0x7fb24fc17700) at pthread_create.c:333
#21 0x00007fb24dc0393f in clone () from /lib/x86_64-linux-gnu/libc.so.6
The problem was that the code in maria_extra assumed that there could be
only one table open when doing maria_extra(MA_FORCE_REOPEN)
However in the case of triggers, there can be multiple copies of the table open.
This problem only affected debug builds. Fixed by removing assert.
Michael Widenius
added a comment - The problem was that the code in maria_extra assumed that there could be
only one table open when doing maria_extra(MA_FORCE_REOPEN)
However in the case of triggers, there can be multiple copies of the table open.
This problem only affected debug builds. Fixed by removing assert.
People
Michael Widenius
Elena Stepanova
Votes:
0Vote for this issue
Watchers:
2Start 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":1366.1999998092651,"ttfb":363.3999996185303,"pageVisibility":"visible","entityId":70511,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"9cf8ffd4-cb45-426e-b174-749a6358f29a","navigationType":0,"readyForUser":1461.3999996185303,"redirectCount":0,"resourceLoadedEnd":1167.0999994277954,"resourceLoadedStart":376.5,"resourceTiming":[{"duration":253.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":376.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":376.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":630,"responseStart":0,"secureConnectionStart":0},{"duration":253.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":376.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":376.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":630.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":514.4000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":377.0999994277954,"connectEnd":377.0999994277954,"connectStart":377.0999994277954,"domainLookupEnd":377.0999994277954,"domainLookupStart":377.0999994277954,"fetchStart":377.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":637.8000001907349,"responseEnd":891.5,"responseStart":657,"secureConnectionStart":377.0999994277954},{"duration":669.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":377.19999980926514,"connectEnd":377.19999980926514,"connectStart":377.19999980926514,"domainLookupEnd":377.19999980926514,"domainLookupStart":377.19999980926514,"fetchStart":377.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":638.0999994277954,"responseEnd":1047,"responseStart":662.1999998092651,"secureConnectionStart":377.19999980926514},{"duration":286.4000005722046,"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":377.3999996185303,"connectEnd":377.3999996185303,"connectStart":377.3999996185303,"domainLookupEnd":377.3999996185303,"domainLookupStart":377.3999996185303,"fetchStart":377.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":638.3000001907349,"responseEnd":663.8000001907349,"responseStart":661,"secureConnectionStart":377.3999996185303},{"duration":280.70000076293945,"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":377.5999994277954,"connectEnd":377.5999994277954,"connectStart":377.5999994277954,"domainLookupEnd":377.5999994277954,"domainLookupStart":377.5999994277954,"fetchStart":377.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":641,"responseEnd":658.3000001907349,"responseStart":656.1999998092651,"secureConnectionStart":377.5999994277954},{"duration":280.3999996185303,"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":377.69999980926514,"connectEnd":377.69999980926514,"connectStart":377.69999980926514,"domainLookupEnd":377.69999980926514,"domainLookupStart":377.69999980926514,"fetchStart":377.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":640.5999994277954,"responseEnd":658.0999994277954,"responseStart":655.5999994277954,"secureConnectionStart":377.69999980926514},{"duration":257.79999923706055,"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":377.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":377.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":635.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":306.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":378,"connectEnd":378,"connectStart":378,"domainLookupEnd":378,"domainLookupStart":378,"fetchStart":378,"redirectEnd":0,"redirectStart":0,"requestStart":667.8000001907349,"responseEnd":684.8999996185303,"responseStart":683.0999994277954,"secureConnectionStart":378},{"duration":288.30000019073486,"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":378.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":378.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":666.5,"responseStart":0,"secureConnectionStart":0},{"duration":308,"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":378.3999996185303,"connectEnd":378.3999996185303,"connectStart":378.3999996185303,"domainLookupEnd":378.3999996185303,"domainLookupStart":378.3999996185303,"fetchStart":378.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":669.5,"responseEnd":686.3999996185303,"responseStart":685.5,"secureConnectionStart":378.3999996185303},{"duration":667.8000001907349,"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":385,"connectEnd":385,"connectStart":385,"domainLookupEnd":385,"domainLookupStart":385,"fetchStart":385,"redirectEnd":0,"redirectStart":0,"requestStart":928.0999994277954,"responseEnd":1052.8000001907349,"responseStart":1049.3999996185303,"secureConnectionStart":385},{"duration":782.0999994277954,"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":385,"connectEnd":385,"connectStart":385,"domainLookupEnd":385,"domainLookupStart":385,"fetchStart":385,"redirectEnd":0,"redirectStart":0,"requestStart":1156,"responseEnd":1167.0999994277954,"responseStart":1166,"secureConnectionStart":385},{"duration":157.89999961853027,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1038.1999998092651,"connectEnd":1038.1999998092651,"connectStart":1038.1999998092651,"domainLookupEnd":1038.1999998092651,"domainLookupStart":1038.1999998092651,"fetchStart":1038.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1161.6999998092651,"responseEnd":1196.0999994277954,"responseStart":1195.3000001907349,"secureConnectionStart":1038.1999998092651}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":192,"responseStart":363,"responseEnd":384,"domLoading":369,"domInteractive":1521,"domContentLoadedEventStart":1521,"domContentLoadedEventEnd":1567,"domComplete":2562,"loadEventStart":2562,"loadEventEnd":2563,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1504.5999994277954},{"name":"bigPipe.sidebar-id.end","time":1505.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":1505.5999994277954},{"name":"bigPipe.activity-panel-pipe-id.end","time":1506.3999996185303},{"name":"activityTabFullyLoaded","time":1586.8999996185303}],"measures":[],"correlationId":"cfa844e2d5dc30","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":94,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The problem was that the code in maria_extra assumed that there could be
only one table open when doing maria_extra(MA_FORCE_REOPEN)
However in the case of triggers, there can be multiple copies of the table open.
This problem only affected debug builds. Fixed by removing assert.