Note: It might be related to, or a duplicate of, MDEV-15800 or/and MDEV-17333, and might even have nothing to do with versioning, I can't tell for sure. The stack trace is different from both bugs, so I'm filing it separately.
CREATE OR REPLACE TABLE t1 (f TINYINT AUTO_INCREMENT NULL, s TIMESTAMP, e TIMESTAMP, PERIOD FOR app(s,e), KEY (f,s));
|
INSERT INTO t1 (s,e) VALUES
|
('2021-08-22 10:28:43','2023-09-17 00:00:00'),
|
('2019-05-09 21:45:24','2020-04-22 14:38:49');
|
INSERT INTO t1 (s,e) SELECT s,e FROM t1;
|
INSERT INTO t1 (s,e) SELECT s,e FROM t1;
|
INSERT INTO t1 (s,e) SELECT s,e FROM t1;
|
INSERT INTO t1 (s,e) VALUES ('2015-07-07 00:00:00','2020-03-11 08:48:52');
|
INSERT INTO t1 (s,e) SELECT s,e FROM t1;
|
INSERT INTO t1 (s,e) SELECT s,e FROM t1;
|
--error 167
|
INSERT INTO t1 SELECT * FROM t1;
|
DELETE IGNORE FROM t1 FOR PORTION OF app FROM '2015-07-07 00:00:00' TO '2020-03-11 08:48:52';
|
|
# Cleanup
|
DROP TABLE t1;
|
10.4 17cbae65
|
mysqld: /data/src/10.4/sql/handler.cc:3438: int handler::update_auto_increment(): Assertion `next_insert_id >= auto_inc_interval_for_cur_row.minimum()' failed.
|
190402 0:32:05 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f1a8fa08ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x000055bf78eecfa0 in handler::update_auto_increment (this=0x7f1a78129508) at /data/src/10.4/sql/handler.cc:3438
|
#9 0x000055bf78cce058 in TABLE::update_generated_fields (this=0x7f1a781286a0) at /data/src/10.4/sql/table.cc:8307
|
#10 0x000055bf78cce1ad in TABLE::period_make_insert (this=0x7f1a781286a0, src=0x7f1a78015ef0, dst=0x7f1a78126950) at /data/src/10.4/sql/table.cc:8327
|
#11 0x000055bf78cce463 in TABLE::insert_portion_of_time (this=0x7f1a781286a0, thd=0x7f1a78000b00, period_conds=..., rows_inserted=0x7f1a89b80d90) at /data/src/10.4/sql/table.cc:8364
|
#12 0x000055bf7909dbed in mysql_delete (thd=0x7f1a78000b00, table_list=0x7f1a78015740, conds=0x7f1a78016b98, order_list=0x7f1a78005490, limit=18446744073709551615, options=0, result=0x0) at /data/src/10.4/sql/sql_delete.cc:849
|
#13 0x000055bf78ba36f4 in mysql_execute_command (thd=0x7f1a78000b00) at /data/src/10.4/sql/sql_parse.cc:4985
|
#14 0x000055bf78bae642 in mysql_parse (thd=0x7f1a78000b00, rawbuf=0x7f1a780155d8 "DELETE IGNORE FROM t1 FOR PORTION OF app FROM '2015-07-07 00:00:00' TO '2020-03-11 08:48:52'", length=92, parser_state=0x7f1a89b82180, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8154
|
#15 0x000055bf78b99dd2 in dispatch_command (command=COM_QUERY, thd=0x7f1a78000b00, packet=0x7f1a78139251 "DELETE IGNORE FROM t1 FOR PORTION OF app FROM '2015-07-07 00:00:00' TO '2020-03-11 08:48:52'", packet_length=92, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1832
|
#16 0x000055bf78b985b8 in do_command (thd=0x7f1a78000b00) at /data/src/10.4/sql/sql_parse.cc:1365
|
#17 0x000055bf78d123d5 in do_handle_one_connection (connect=0x55bf7c4294e0) at /data/src/10.4/sql/sql_connect.cc:1398
|
#18 0x000055bf78d12146 in handle_one_connection (arg=0x55bf7c4294e0) at /data/src/10.4/sql/sql_connect.cc:1301
|
#19 0x000055bf79207e6f in pfs_spawn_thread (arg=0x55bf7c51b8b0) at /data/src/10.4/storage/perfschema/pfs.cc:1862
|
#20 0x00007f1a918f7494 in start_thread (arg=0x7f1a89b83700) at pthread_create.c:333
|
#21 0x00007f1a8fac593f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Reproducible with at least MyISAM and InnoDB.
No obvious problem on a non-debug build.
The test case is not applicable to previous versions.
{"report":{"fcp":911.6000000238419,"ttfb":252.60000002384186,"pageVisibility":"visible","entityId":74147,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"dc796566-6960-49a3-bb82-cff2d837d3fa","navigationType":0,"readyForUser":1001.3000000119209,"redirectCount":0,"resourceLoadedEnd":1027.1000000238419,"resourceLoadedStart":258.80000001192093,"resourceTiming":[{"duration":119.69999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":258.80000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":258.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":378.5,"responseStart":0,"secureConnectionStart":0},{"duration":119.90000003576279,"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":259,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":259,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":378.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":131.4000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":259.19999998807907,"connectEnd":259.19999998807907,"connectStart":259.19999998807907,"domainLookupEnd":259.19999998807907,"domainLookupStart":259.19999998807907,"fetchStart":259.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":259.19999998807907,"responseEnd":390.60000002384186,"responseStart":390.60000002384186,"secureConnectionStart":259.19999998807907},{"duration":169.89999997615814,"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":259.4000000357628,"connectEnd":259.4000000357628,"connectStart":259.4000000357628,"domainLookupEnd":259.4000000357628,"domainLookupStart":259.4000000357628,"fetchStart":259.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":259.4000000357628,"responseEnd":429.30000001192093,"responseStart":429.30000001192093,"secureConnectionStart":259.4000000357628},{"duration":173.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":259.60000002384186,"connectEnd":259.60000002384186,"connectStart":259.60000002384186,"domainLookupEnd":259.60000002384186,"domainLookupStart":259.60000002384186,"fetchStart":259.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":259.60000002384186,"responseEnd":433.30000001192093,"responseStart":433.30000001192093,"secureConnectionStart":259.60000002384186},{"duration":174.19999998807907,"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":259.80000001192093,"connectEnd":259.80000001192093,"connectStart":259.80000001192093,"domainLookupEnd":259.80000001192093,"domainLookupStart":259.80000001192093,"fetchStart":259.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":259.80000001192093,"responseEnd":434,"responseStart":434,"secureConnectionStart":259.80000001192093},{"duration":174.4000000357628,"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":260,"connectEnd":260,"connectStart":260,"domainLookupEnd":260,"domainLookupStart":260,"fetchStart":260,"redirectEnd":0,"redirectStart":0,"requestStart":260,"responseEnd":434.4000000357628,"responseStart":434.4000000357628,"secureConnectionStart":260},{"duration":276.39999997615814,"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":260.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":260.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":536.5,"responseStart":0,"secureConnectionStart":0},{"duration":174.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":260.30000001192093,"connectEnd":260.30000001192093,"connectStart":260.30000001192093,"domainLookupEnd":260.30000001192093,"domainLookupStart":260.30000001192093,"fetchStart":260.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":260.30000001192093,"responseEnd":434.9000000357628,"responseStart":434.9000000357628,"secureConnectionStart":260.30000001192093},{"duration":276.19999998807907,"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":260.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":260.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":536.6999999880791,"responseStart":0,"secureConnectionStart":0},{"duration":175.30000001192093,"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":260.69999998807907,"connectEnd":260.69999998807907,"connectStart":260.69999998807907,"domainLookupEnd":260.69999998807907,"domainLookupStart":260.69999998807907,"fetchStart":260.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":260.69999998807907,"responseEnd":436,"responseStart":436,"secureConnectionStart":260.69999998807907},{"duration":505.0999999642372,"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":261.60000002384186,"connectEnd":261.60000002384186,"connectStart":261.60000002384186,"domainLookupEnd":261.60000002384186,"domainLookupStart":261.60000002384186,"fetchStart":261.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":261.60000002384186,"responseEnd":766.6999999880791,"responseStart":766.6999999880791,"secureConnectionStart":261.60000002384186},{"duration":603.9000000357628,"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":261.69999998807907,"connectEnd":261.69999998807907,"connectStart":261.69999998807907,"domainLookupEnd":261.69999998807907,"domainLookupStart":261.69999998807907,"fetchStart":261.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":261.69999998807907,"responseEnd":865.6000000238419,"responseStart":865.6000000238419,"secureConnectionStart":261.69999998807907},{"duration":218.80000001192093,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":548.5,"connectEnd":548.5,"connectStart":548.5,"domainLookupEnd":548.5,"domainLookupStart":548.5,"fetchStart":548.5,"redirectEnd":0,"redirectStart":0,"requestStart":548.5,"responseEnd":767.3000000119209,"responseStart":767.3000000119209,"secureConnectionStart":548.5},{"duration":217.19999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":809.9000000357628,"connectEnd":809.9000000357628,"connectStart":809.9000000357628,"domainLookupEnd":809.9000000357628,"domainLookupStart":809.9000000357628,"fetchStart":809.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":809.9000000357628,"responseEnd":1027.1000000238419,"responseStart":1027.1000000238419,"secureConnectionStart":809.9000000357628},{"duration":217.10000002384186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":902.6999999880791,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":902.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1119.800000011921,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":69,"responseStart":253,"responseEnd":256,"domLoading":256,"domInteractive":1071,"domContentLoadedEventStart":1071,"domContentLoadedEventEnd":1116,"domComplete":2141,"loadEventStart":2141,"loadEventEnd":2142,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1047},{"name":"bigPipe.sidebar-id.end","time":1047.800000011921},{"name":"bigPipe.activity-panel-pipe-id.start","time":1048},{"name":"bigPipe.activity-panel-pipe-id.end","time":1050.4000000357628},{"name":"activityTabFullyLoaded","time":1127}],"measures":[],"correlationId":"14206101cf5999","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":102,"dbReadsTimeInMs":17,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}