The failure started happening on 10.0-base tree from the following revision:
revno: 3651
|
revision-id: sergii@pisem.net-20130615170931-bn2h8j30vu5bfp0t
|
parent: knielsen@knielsen-hq.org-20130608103621-g91eaielv4n22aha
|
fixes bug: https://mariadb.atlassian.net/browse/MDEV-4441
|
committer: Sergei Golubchik <sergii@pisem.net>
|
branch nick: 10.0-base
|
timestamp: Sat 2013-06-15 19:09:31 +0200
|
message:
|
MDEV-4441 DROP DATABASE with a newly created ARCHIVE table does not work
|
|
1. DROP DATABASE should use ha_discover_table_names(), not look at .frm files.
|
2. filename_to_tablename() also encodes temp file names #sql- -> #mysql50##sql
|
3. no special treatment for #sql- files, no TABLE_LIST::internal_tmp_table
|
4. discover also table file names, that start from #
|
Stack trace from the current 10.0 tree revno 3843, built with BUILD/compile-pentium-debug-max-no-ndb
mysqld: 10.0/storage/myisam/mi_open.c:67: test_if_reopen: Assertion `strcmp(share->unique_file_name,filename) || share->last_version' failed.
|
130930 18:06:42 [ERROR] mysqld got signal 6 ;
|
#6 0x00007f087a0230ee in __assert_fail_base (fmt=<optimised out>, assertion=0x10f5b98 "strcmp(share->unique_file_name,filename) || share->last_version", file=0x10f5b68 "10.0/storage/myisam/mi_open.c", line=<optimised out>, function=<optimised out>) at assert.c:94
|
#7 0x00007f087a023192 in __GI___assert_fail (assertion=0x10f5b98 "strcmp(share->unique_file_name,filename) || share->last_version", file=0x10f5b68 "10.0/storage/myisam/mi_open.c", line=67, function=0x10f5dd4 "test_if_reopen") at assert.c:103
|
#8 0x0000000000d3a307 in test_if_reopen (filename=0x7f087b7fb100 "10.0/data/test/#sql-783_7.MYI") at 10.0/storage/myisam/mi_open.c:66
|
#9 0x0000000000d26cc8 in mi_create (name=0x7f087b7fb600 "./test/#sql-783_7", keys=6, keydefs=0x7f084c974550, columns=13, recinfo=0x7f084c974070, uniques=0, uniquedefs=0x0, ci=0x7f087b7fb570, flags=2) at 10.0/storage/myisam/mi_create.c:637
|
#10 0x0000000000d1231b in ha_myisam::create (this=0x7f084c8d1888, name=0x7f087b7fd48c "./test/#sql-783_7", table_arg=0x6, ha_create_info=0x7f087b7fe2a0) at 10.0/storage/myisam/ha_myisam.cc:2031
|
#11 0x000000000082093c in handler::ha_create (this=0x7f084c8d1888, name=0x7f087b7fd48c "./test/#sql-783_7", form=0x7f087b7fb8c0, info=0x7f087b7fe2a0) at 10.0/sql/handler.cc:4207
|
#12 0x000000000082183b in ha_create_table (thd=0x7f085ebf5070, path=0x7f087b7fd48c "./test/#sql-783_7", db=0x7f084c42c750 "test", table_name=0x7f087b7fcc20 "#sql-783_7", create_info=0x7f087b7fe2a0, frm=0x7f087b7fcb40) at 10.0/sql/handler.cc:4576
|
#13 0x00000000006eb0e1 in mysql_alter_table (thd=0x7f085ebf5070, new_db=0x7f084c42c750 "test", new_name=0x0, create_info=0x7f087b7fe2a0, table_list=0x7f084c42c188, alter_info=0x7f087b7fe3b0, order_num=0, order=0x0, ignore=false) at 10.0/sql/sql_table.cc:8325
|
#14 0x0000000000752cf9 in Sql_cmd_alter_table::execute (this=0x7f084c42c838, thd=0x7f085ebf5070) at 10.0/sql/sql_alter.cc:312
|
#15 0x000000000063c45c in mysql_execute_command (thd=0x7f085ebf5070) at 10.0/sql/sql_parse.cc:4957
|
#16 0x000000000063f698 in mysql_parse (thd=0x7f085ebf5070, rawbuf=0x7f084c42c088 "ALTER TABLE `BB` ADD COLUMN t INTEGER", length=37, parser_state=0x7f087b7ff4c0) at 10.0/sql/sql_parse.cc:6269
|
#17 0x0000000000632408 in dispatch_command (command=COM_QUERY, thd=0x7f085ebf5070, packet=0x7f085f39b071 "ALTER TABLE `BB` ADD COLUMN t INTEGER", packet_length=37) at 10.0/sql/sql_parse.cc:1278
|
#18 0x0000000000631840 in do_command (thd=0x7f085ebf5070) at 10.0/sql/sql_parse.cc:984
|
#19 0x000000000074e369 in do_handle_one_connection (thd_arg=0x7f085ebf5070) at 10.0/sql/sql_connect.cc:1379
|
#20 0x000000000074e0bc in handle_one_connection (arg=0x7f085ebf5070) at 10.0/sql/sql_connect.cc:1293
|
#21 0x0000000000e1947b in pfs_spawn_thread (arg=0x7f0864ff5670) at 10.0/storage/perfschema/pfs.cc:1853
|
#22 0x00007f087abcce9a in start_thread (arg=0x7f087b800700) at pthread_create.c:308
|
#23 0x00007f087a0e7cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
#24 0x0000000000000000 in ?? ()
|
RQG grammar:
thread1:
|
ALTER TABLE _table ADD COLUMN _letter INTEGER |
|
ALTER TABLE _table DROP COLUMN _letter ;
|
|
query:
|
SHOW TABLE STATUS ;
|
RQG command line (assuming the server is already running on port 3306):
perl ./gentest.pl --threads=2 --duration=600 --queries=100M --grammar=1.yy --engine=MyISAM --dsn=dbi:mysql:host=127.0.0.1:port=3306:user=root:database=test --gendata
|
The failure happens for me within seconds after the start.
There are no comments yet on this issue.
{"report":{"fcp":999,"ttfb":242,"pageVisibility":"visible","entityId":25900,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"f00548a7-52a9-4f2d-aca7-6e3e148d37a1","navigationType":0,"readyForUser":1079.7000000476837,"redirectCount":0,"resourceLoadedEnd":727.7999999523163,"resourceLoadedStart":253,"resourceTiming":[{"duration":110.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":253,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":253,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":363.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":110.70000004768372,"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":253.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":253.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":364,"responseStart":0,"secureConnectionStart":0},{"duration":336.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":253.40000009536743,"connectEnd":253.40000009536743,"connectStart":253.40000009536743,"domainLookupEnd":253.40000009536743,"domainLookupStart":253.40000009536743,"fetchStart":253.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":367.60000014305115,"responseEnd":589.7999999523163,"responseStart":384.2000000476837,"secureConnectionStart":253.40000009536743},{"duration":460.5,"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":253.70000004768372,"connectEnd":253.70000004768372,"connectStart":253.70000004768372,"domainLookupEnd":253.70000004768372,"domainLookupStart":253.70000004768372,"fetchStart":253.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":366.90000009536743,"responseEnd":714.2000000476837,"responseStart":384.90000009536743,"secureConnectionStart":253.70000004768372},{"duration":136,"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":253.90000009536743,"connectEnd":253.90000009536743,"connectStart":253.90000009536743,"domainLookupEnd":253.90000009536743,"domainLookupStart":253.90000009536743,"fetchStart":253.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":367.7000000476837,"responseEnd":389.90000009536743,"responseStart":386.60000014305115,"secureConnectionStart":253.90000009536743},{"duration":136,"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":254.10000014305115,"connectEnd":254.10000014305115,"connectStart":254.10000014305115,"domainLookupEnd":254.10000014305115,"domainLookupStart":254.10000014305115,"fetchStart":254.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":370.60000014305115,"responseEnd":390.10000014305115,"responseStart":388,"secureConnectionStart":254.10000014305115},{"duration":137.20000004768372,"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":254.20000004768372,"connectEnd":254.20000004768372,"connectStart":254.20000004768372,"domainLookupEnd":254.20000004768372,"domainLookupStart":254.20000004768372,"fetchStart":254.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":370.7999999523163,"responseEnd":391.40000009536743,"responseStart":388.7999999523163,"secureConnectionStart":254.20000004768372},{"duration":114.20000004768372,"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":254.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":254.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":368.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":137,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":254.60000014305115,"connectEnd":254.60000014305115,"connectStart":254.60000014305115,"domainLookupEnd":254.60000014305115,"domainLookupStart":254.60000014305115,"fetchStart":254.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":371.90000009536743,"responseEnd":391.60000014305115,"responseStart":390.2999999523163,"secureConnectionStart":254.60000014305115},{"duration":116.5,"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":254.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":254.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":371.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":157.59999990463257,"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":254.90000009536743,"connectEnd":254.90000009536743,"connectStart":254.90000009536743,"domainLookupEnd":254.90000009536743,"domainLookupStart":254.90000009536743,"fetchStart":254.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":375.2000000476837,"responseEnd":412.5,"responseStart":393.10000014305115,"secureConnectionStart":254.90000009536743},{"duration":470.19999980926514,"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":255.60000014305115,"connectEnd":255.60000014305115,"connectStart":255.60000014305115,"domainLookupEnd":255.60000014305115,"domainLookupStart":255.60000014305115,"fetchStart":255.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":481.10000014305115,"responseEnd":725.7999999523163,"responseStart":718,"secureConnectionStart":255.60000014305115},{"duration":471.89999985694885,"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":255.90000009536743,"connectEnd":255.90000009536743,"connectStart":255.90000009536743,"domainLookupEnd":255.90000009536743,"domainLookupStart":255.90000009536743,"fetchStart":255.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":552.6000001430511,"responseEnd":727.7999999523163,"responseStart":722.6000001430511,"secureConnectionStart":255.90000009536743},{"duration":186.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":736.7999999523163,"connectEnd":736.7999999523163,"connectStart":736.7999999523163,"domainLookupEnd":736.7999999523163,"domainLookupStart":736.7999999523163,"fetchStart":736.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":886.7000000476837,"responseEnd":923,"responseStart":921.7999999523163,"secureConnectionStart":736.7999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":64,"responseStart":242,"responseEnd":245,"domLoading":251,"domInteractive":1153,"domContentLoadedEventStart":1153,"domContentLoadedEventEnd":1200,"domComplete":1930,"loadEventStart":1930,"loadEventEnd":1931,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1135.2999999523163},{"name":"bigPipe.sidebar-id.end","time":1136.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1136.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1136.9000000953674},{"name":"activityTabFullyLoaded","time":1211.4000000953674}],"measures":[],"correlationId":"ebc12fd06b36b5","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":85,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}