Note: the test case fails for me every time on a non-debug build, but there is still some concurrency involved in the scenario, so it can be different on other machines. I couldn't so far reproduce the problem on a debug or ASAN-debug build.
--source include/have_innodb.inc
|
|
CREATE SEQUENCE s1 ENGINE=InnoDB;
|
CREATE TABLE t1 (i INT) ENGINE=InnoDB;
|
|
--connect (con1,localhost,root,,test)
|
|
BEGIN;
|
SELECT * FROM mysql.innodb_table_stats;
|
|
--connection default
|
CREATE SEQUENCE s2 ENGINE=InnoDB;
|
|
--connection con1
|
--send
|
SELECT * FROM INFORMATION_SCHEMA.CHECK_CONSTRAINTS;
|
|
--connection default
|
FLUSH TABLES;
|
|
--connection con1
|
--reap
|
|
--connection default
|
|
--error ER_TABLE_EXISTS_ERROR,ER_TABLESPACE_EXISTS
|
CREATE TABLE s2 LIKE t1;
|
--error ER_TABLE_EXISTS_ERROR
|
CREATE TABLE s2 LIKE s1;
|
|
--connection con1
|
SELECT * FROM t1;
|
|
--connection default
|
SET lock_wait_timeout= 1;
|
--error ER_LOCK_WAIT_TIMEOUT
|
ALTER TABLE t1 ADD COLUMN a INTEGER;
|
|
# Cleanup
|
--disconnect con1
|
DROP SEQUENCE s1, s2;
|
DROP TABLE t1;
|
10.3 RelWithDebInfo babb000a36f7
|
2018-11-28 10:37:14 9 [ERROR] InnoDB: Operating system error number 17 in a file operation.
|
2018-11-28 10:37:14 9 [ERROR] InnoDB: Error number 17 means 'File exists'
|
2018-11-28 10:37:14 9 [Note] InnoDB: Some operating system error numbers are described at https://mariadb.com/kb/en/library/operating-system-error-codes/
|
2018-11-28 10:37:14 9 [Note] InnoDB: The file './test/s2.ibd' already exists though the corresponding table did not exist in the InnoDB data dictionary. You can resolve the problem by removing the file.
|
2018-11-28 10:37:14 9 [ERROR] InnoDB: Cannot create file './test/s2.ibd'
|
2018-11-28 10:37:14 9 [ERROR] InnoDB: Failed to find tablespace for table `test`.`s2` in the cache. Attempting to load the tablespace with space id 7
|
2018-11-28 10:37:14 9 [ERROR] InnoDB: Refusing to load './test/s2.ibd' (id=9, flags=0x21); dictionary contains id=7, flags=0x21
|
2018-11-28 10:37:14 9 [ERROR] InnoDB: Operating system error number 2 in a file operation.
|
2018-11-28 10:37:14 9 [ERROR] InnoDB: The error means the system cannot find the path specified.
|
2018-11-28 10:37:14 9 [ERROR] InnoDB: Could not find a valid tablespace file for ``test`.`s2``. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting-datadict.html for how to resolve the issue.
|
2018-11-28 10:37:14 9 [Note] InnoDB: Deleting ./test/s2.ibd
|
2018-11-28 10:37:14 0 [ERROR] InnoDB: Operating system error number 2 in a file operation.
|
2018-11-28 10:37:14 0 [ERROR] InnoDB: The error means the system cannot find the path specified.
|
2018-11-28 10:37:14 0 [ERROR] InnoDB: File ./test/s2.ibd: 'open' returned OS error 71.
|
2018-11-28 10:37:14 0x7f8dae7fc700 InnoDB: Assertion failure in file /data/src/10.3/storage/innobase/fil/fil0fil.cc line 671
|
InnoDB: Failing assertion: success
|
|
#5 0x000055ace8148000 in ut_dbg_assertion_failed (expr=expr@entry=0x55ace8a52d29 "success", file=file@entry=0x55ace8a74828 "/data/src/10.3/storage/innobase/fil/fil0fil.cc", line=line@entry=671) at /data/src/10.3/storage/innobase/ut/ut0dbg.cc:60
|
#6 0x000055ace87c8448 in fil_node_open_file (node=node@entry=0x7f8d68073de0) at /data/src/10.3/storage/innobase/fil/fil0fil.cc:671
|
#7 0x000055ace87c898f in fil_node_prepare_for_io (node=node@entry=0x7f8d68073de0, space=space@entry=0x7f8d680907e0) at /data/src/10.3/storage/innobase/fil/fil0fil.cc:4080
|
#8 0x000055ace87c9f13 in fil_io (type=..., sync=sync@entry=false, page_id=..., page_size=..., byte_offset=byte_offset@entry=0, len=16384, buf=0x7f8db6670000, message=0x7f8db6150a68, ignore_missing_space=false) at /data/src/10.3/storage/innobase/fil/fil0fil.cc:4335
|
#9 0x000055ace876c039 in buf_dblwr_write_block_to_datafile (bpage=0x7f8db6150a68, sync=sync@entry=false) at /data/src/10.3/storage/innobase/buf/buf0dblwr.cc:929
|
#10 0x000055ace876dd8d in buf_dblwr_flush_buffered_writes () at /data/src/10.3/storage/innobase/buf/buf0dblwr.cc:1075
|
#11 0x000055ace87784cf in buf_flush_end (flush_type=<optimized out>, buf_pool=0x55aceb005f90) at /data/src/10.3/storage/innobase/buf/buf0flu.cc:1972
|
#12 buf_flush_do_batch (buf_pool=<optimized out>, type=<optimized out>, min_n=<optimized out>, lsn_limit=<optimized out>, n=<optimized out>) at /data/src/10.3/storage/innobase/buf/buf0flu.cc:2041
|
#13 0x000055ace87788db in buf_flush_lists (min_n=200, lsn_limit=lsn_limit@entry=18446744073709551615, n_processed=0x7f8dae7fbc90) at /data/src/10.3/storage/innobase/buf/buf0flu.cc:2145
|
#14 0x000055ace877bbb7 in buf_flush_page_cleaner_coordinator () at /data/src/10.3/storage/innobase/buf/buf0flu.cc:3297
|
#15 0x00007f8dc2601494 in start_thread (arg=0x7f8dae7fc700) at pthread_create.c:333
|
#16 0x00007f8dc0c0293f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
The scenario is not applicable to 10.2 because sequences are involved.
{"report":{"fcp":877.4000000953674,"ttfb":143.40000009536743,"pageVisibility":"visible","entityId":71123,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"c804d918-8c75-4228-8c06-5e2483fcdae1","navigationType":0,"readyForUser":949.2000000476837,"redirectCount":0,"resourceLoadedEnd":1258.7000000476837,"resourceLoadedStart":148.60000002384186,"resourceTiming":[{"duration":260.10000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":148.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":148.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":408.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":259.89999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":148.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":148.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":408.8000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":268.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":149,"connectEnd":149,"connectStart":149,"domainLookupEnd":149,"domainLookupStart":149,"fetchStart":149,"redirectEnd":0,"redirectStart":0,"requestStart":149,"responseEnd":417.90000009536743,"responseStart":417.90000009536743,"secureConnectionStart":149},{"duration":293.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":149.10000002384186,"connectEnd":149.10000002384186,"connectStart":149.10000002384186,"domainLookupEnd":149.10000002384186,"domainLookupStart":149.10000002384186,"fetchStart":149.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":149.10000002384186,"responseEnd":443,"responseStart":443,"secureConnectionStart":149.10000002384186},{"duration":297.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":149.20000004768372,"connectEnd":149.20000004768372,"connectStart":149.20000004768372,"domainLookupEnd":149.20000004768372,"domainLookupStart":149.20000004768372,"fetchStart":149.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":149.20000004768372,"responseEnd":446.60000002384186,"responseStart":446.60000002384186,"secureConnectionStart":149.20000004768372},{"duration":297.6999999284744,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":149.30000007152557,"connectEnd":149.30000007152557,"connectStart":149.30000007152557,"domainLookupEnd":149.30000007152557,"domainLookupStart":149.30000007152557,"fetchStart":149.30000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":149.30000007152557,"responseEnd":447,"responseStart":447,"secureConnectionStart":149.30000007152557},{"duration":298,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":149.40000009536743,"connectEnd":149.40000009536743,"connectStart":149.40000009536743,"domainLookupEnd":149.40000009536743,"domainLookupStart":149.40000009536743,"fetchStart":149.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":149.40000009536743,"responseEnd":447.40000009536743,"responseStart":447.40000009536743,"secureConnectionStart":149.40000009536743},{"duration":298.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":149.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":149.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":447.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":298.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":149.60000002384186,"connectEnd":149.60000002384186,"connectStart":149.60000002384186,"domainLookupEnd":149.60000002384186,"domainLookupStart":149.60000002384186,"fetchStart":149.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":149.60000002384186,"responseEnd":447.7000000476837,"responseStart":447.7000000476837,"secureConnectionStart":149.60000002384186},{"duration":298.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":149.80000007152557,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":149.80000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":448.3000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":298.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":149.90000009536743,"connectEnd":149.90000009536743,"connectStart":149.90000009536743,"domainLookupEnd":149.90000009536743,"domainLookupStart":149.90000009536743,"fetchStart":149.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":149.90000009536743,"responseEnd":448.3000000715256,"responseStart":448.3000000715256,"secureConnectionStart":149.90000009536743},{"duration":467,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":161.80000007152557,"connectEnd":161.80000007152557,"connectStart":161.80000007152557,"domainLookupEnd":161.80000007152557,"domainLookupStart":161.80000007152557,"fetchStart":161.80000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":161.80000007152557,"responseEnd":628.8000000715256,"responseStart":628.8000000715256,"secureConnectionStart":161.80000007152557},{"duration":1094.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":164,"connectEnd":164,"connectStart":164,"domainLookupEnd":164,"domainLookupStart":164,"fetchStart":164,"redirectEnd":0,"redirectStart":0,"requestStart":164,"responseEnd":1258.7000000476837,"responseStart":1258.7000000476837,"secureConnectionStart":164},{"duration":506,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":647.3000000715256,"connectEnd":647.3000000715256,"connectStart":647.3000000715256,"domainLookupEnd":647.3000000715256,"domainLookupStart":647.3000000715256,"fetchStart":647.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":647.3000000715256,"responseEnd":1153.3000000715256,"responseStart":1153.3000000715256,"secureConnectionStart":647.3000000715256}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":3,"responseStart":143,"responseEnd":164,"domLoading":147,"domInteractive":1279,"domContentLoadedEventStart":1279,"domContentLoadedEventEnd":1314,"domComplete":1917,"loadEventStart":1917,"loadEventEnd":1918,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1262.9000000953674},{"name":"bigPipe.sidebar-id.end","time":1263.8000000715256},{"name":"bigPipe.activity-panel-pipe-id.start","time":1263.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1266.2000000476837},{"name":"activityTabFullyLoaded","time":1320.7000000476837}],"measures":[],"correlationId":"996f5e4922ba89","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":77,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}