Notes:
The attached test case is for reproducing/debugging only, do not put it into the regression suite, create a proper one instead.
The test case is ~800 queries consisting of seemingly random DDL and some DML. Some of queries are supposed to fail and do fail, which is why the test case starts with --disable_abort_on_error. Yet, I cannot remove anything from there, including the failing statements.
The test fails for me every time, but if it doesn't for you, run with --repeat=N, it can still be non-deterministic, even though there is no obvious concurrency involved.
Run in shm. The failure happens when it runs on disk, too, but it takes forever on disk (e.g. on my machine ~10 minutes on disk vs ~17 seconds in shm).
Not reproducible on 10.3, although it's possible that the test case is just not good enough for 10.3.
There is no crash or on a non-debug version; otherwise whether it behaves correctly or not, is hard to tell with such a test case.
10.4 790b6f5a
|
mysqld: /data/src/10.4/storage/perfschema/pfs_instr_class.cc:1380: void release_table_share(PFS_table_share*): Assertion `pfs->get_refcount() > 0' failed.
|
190219 20:21:39 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f8bc86b5ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x000055fc4651b46c in release_table_share (pfs=0x7f8bc7cd6bc0) at /data/src/10.4/storage/perfschema/pfs_instr_class.cc:1380
|
#9 0x000055fc46540fa2 in release_table_share_v1 (share=0x7f8bc7cd6bc0) at /data/src/10.4/storage/perfschema/pfs.cc:1586
|
#10 0x000055fc461465d2 in tdc_delete_share_from_hash (element=0x7f8b70413f00) at /data/src/10.4/sql/table_cache.cc:518
|
#11 0x000055fc46146f60 in tdc_purge (all=true) at /data/src/10.4/sql/table_cache.cc:722
|
#12 0x000055fc45e408ea in purge_tables (purge_flag=false) at /data/src/10.4/sql/sql_base.cc:337
|
#13 0x000055fc45e409fa in close_cached_tables (thd=0x7f8b68000b00, tables=0x0, wait_for_refresh=true, timeout=86400) at /data/src/10.4/sql/sql_base.cc:364
|
#14 0x000055fc460877da in reload_acl_and_cache (thd=0x7f8b68000b00, options=4, tables=0x0, write_to_binlog=0x7f8bc006e9d0) at /data/src/10.4/sql/sql_reload.cc:339
|
#15 0x000055fc45ee7453 in mysql_execute_command (thd=0x7f8b68000b00) at /data/src/10.4/sql/sql_parse.cc:5677
|
#16 0x000055fc45eeefa0 in mysql_parse (thd=0x7f8b68000b00, rawbuf=0x7f8b68013e38 "FLUSH TABLES", length=12, parser_state=0x7f8bc006f1f0, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8129
|
#17 0x000055fc45eda6da in dispatch_command (command=COM_QUERY, thd=0x7f8b68000b00, packet=0x7f8b6800a4c1 "FLUSH TABLES", packet_length=12, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1808
|
#18 0x000055fc45ed8fe4 in do_command (thd=0x7f8b68000b00) at /data/src/10.4/sql/sql_parse.cc:1358
|
#19 0x000055fc4604e247 in do_handle_one_connection (connect=0x55fc498cc1e0) at /data/src/10.4/sql/sql_connect.cc:1399
|
#20 0x000055fc4604dfb8 in handle_one_connection (arg=0x55fc498cc1e0) at /data/src/10.4/sql/sql_connect.cc:1302
|
#21 0x000055fc46541753 in pfs_spawn_thread (arg=0x55fc4992e370) at /data/src/10.4/storage/perfschema/pfs.cc:1862
|
#22 0x00007f8bca38c494 in start_thread (arg=0x7f8bc0070700) at pthread_create.c:333
|
#23 0x00007f8bc877293f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
{"report":{"fcp":748.6000000238419,"ttfb":213.90000000596046,"pageVisibility":"visible","entityId":71216,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"c18e391a-66e9-43dd-b215-14e7f3066acd","navigationType":0,"readyForUser":817.5,"redirectCount":0,"resourceLoadedEnd":511.80000001192093,"resourceLoadedStart":226.2000000178814,"resourceTiming":[{"duration":4.9000000059604645,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":226.2000000178814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":226.2000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":231.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":5.600000023841858,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":226.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":226.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":232.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":82.09999999403954,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":226.80000001192093,"connectEnd":226.80000001192093,"connectStart":226.80000001192093,"domainLookupEnd":226.80000001192093,"domainLookupStart":226.80000001192093,"fetchStart":226.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":235.90000000596046,"responseEnd":308.90000000596046,"responseStart":261.7000000178814,"secureConnectionStart":226.80000001192093},{"duration":99.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":227.30000001192093,"connectEnd":227.30000001192093,"connectStart":227.30000001192093,"domainLookupEnd":227.30000001192093,"domainLookupStart":227.30000001192093,"fetchStart":227.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":236.40000000596046,"responseEnd":326.80000001192093,"responseStart":266,"secureConnectionStart":227.30000001192093},{"duration":37.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":227.60000002384186,"connectEnd":227.60000002384186,"connectStart":227.60000002384186,"domainLookupEnd":227.60000002384186,"domainLookupStart":227.60000002384186,"fetchStart":227.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":236.60000002384186,"responseEnd":265.30000001192093,"responseStart":264.80000001192093,"secureConnectionStart":227.60000002384186},{"duration":33.900000005960464,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":227.7000000178814,"connectEnd":227.7000000178814,"connectStart":227.7000000178814,"domainLookupEnd":227.7000000178814,"domainLookupStart":227.7000000178814,"fetchStart":227.7000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":237.40000000596046,"responseEnd":261.60000002384186,"responseStart":261,"secureConnectionStart":227.7000000178814},{"duration":38,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":227.90000000596046,"connectEnd":227.90000000596046,"connectStart":227.90000000596046,"domainLookupEnd":227.90000000596046,"domainLookupStart":227.90000000596046,"fetchStart":227.90000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":237.90000000596046,"responseEnd":265.90000000596046,"responseStart":265.40000000596046,"secureConnectionStart":227.90000000596046},{"duration":10.100000023841858,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":228,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":228,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":238.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":36.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":228.2000000178814,"connectEnd":228.2000000178814,"connectStart":228.2000000178814,"domainLookupEnd":228.2000000178814,"domainLookupStart":228.2000000178814,"fetchStart":228.2000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":240.60000002384186,"responseEnd":264.7000000178814,"responseStart":264.10000002384186,"secureConnectionStart":228.2000000178814},{"duration":10.800000011920929,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":228.40000000596046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":228.40000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":239.2000000178814,"responseStart":0,"secureConnectionStart":0},{"duration":35.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":228.60000002384186,"connectEnd":228.60000002384186,"connectStart":228.60000002384186,"domainLookupEnd":228.60000002384186,"domainLookupStart":228.60000002384186,"fetchStart":228.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":241.5,"responseEnd":264,"responseStart":263.40000000596046,"secureConnectionStart":228.60000002384186},{"duration":252.19999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":256.7000000178814,"connectEnd":256.7000000178814,"connectStart":256.7000000178814,"domainLookupEnd":256.7000000178814,"domainLookupStart":256.7000000178814,"fetchStart":256.7000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":273.2000000178814,"responseEnd":508.90000000596046,"responseStart":504.2000000178814,"secureConnectionStart":256.7000000178814},{"duration":254.90000000596046,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":256.90000000596046,"connectEnd":256.90000000596046,"connectStart":256.90000000596046,"domainLookupEnd":256.90000000596046,"domainLookupStart":256.90000000596046,"fetchStart":256.90000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":278.10000002384186,"responseEnd":511.80000001192093,"responseStart":506.10000002384186,"secureConnectionStart":256.90000000596046},{"duration":208.90000000596046,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":514.4000000059605,"connectEnd":514.4000000059605,"connectStart":514.4000000059605,"domainLookupEnd":514.4000000059605,"domainLookupStart":514.4000000059605,"fetchStart":514.4000000059605,"redirectEnd":0,"redirectStart":0,"requestStart":687.8000000119209,"responseEnd":723.3000000119209,"responseStart":722.5,"secureConnectionStart":514.4000000059605}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":44,"responseStart":214,"responseEnd":256,"domLoading":217,"domInteractive":871,"domContentLoadedEventStart":871,"domContentLoadedEventEnd":910,"domComplete":1465,"loadEventStart":1465,"loadEventEnd":1465,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":851.9000000059605},{"name":"bigPipe.sidebar-id.end","time":852.7000000178814},{"name":"bigPipe.activity-panel-pipe-id.start","time":852.8000000119209},{"name":"bigPipe.activity-panel-pipe-id.end","time":853.6000000238419},{"name":"activityTabFullyLoaded","time":927}],"measures":[],"correlationId":"f04491de4ec890","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":94,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Changes requested on zulip.