Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
N/A
--source include/have_partition.inc
CREATE OR REPLACE TABLE t1 (a INT , b INT ) WITH SYSTEM VERSIONING;
INSERT INTO t1 VALUES (1,10),(2,20),(3,30);
UPDATE t1 SET b = 0;
ALTER TABLE t1 PARTITION BY system_time INTERVAL 1 SECOND ( PARTITION p1 HISTORY, PARTITION p2 HISTORY, PARTITION p3 HISTORY, PARTITION pn CURRENT );
SET AUTOCOMMIT= OFF ;
SELECT * FROM t1;
--connect (con1,localhost,root,,test)
SET lock_wait_timeout= 2;
--error ER_LOCK_WAIT_TIMEOUT
REPLACE INTO t1 (b) SELECT b FROM t1;
DELETE FROM t1 WHERE a = 2;
DELETE IGNORE FROM t1 WHERE a BETWEEN 1 AND 2;
DELETE IGNORE FROM t1 WHERE a = 5;
# Cleanup
--disconnect con1
--connection default
DROP TABLE t1;
bb-10.3-temporal a3a15126f26
mysqld: /data/src/bb-10.3-temporal/sql/sql_error.cc:335: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed.
171230 15:46:21 [ERROR] mysqld got signal 6 ;
#7 0x00007f69ff4e2ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#8 0x00005614e49510a0 in Diagnostics_area::set_ok_status (this=0x7f69dc005f28, affected_rows=0, last_insert_id=0, message=0x0) at /data/src/bb-10.3-temporal/sql/sql_error.cc:335
#9 0x00005614e48fffa4 in my_ok (thd=0x7f69dc000b00, affected_rows_arg=0, id=0, message=0x0) at /data/src/bb-10.3-temporal/sql/sql_class.h:4732
#10 0x00005614e4e24d85 in mysql_delete (thd=0x7f69dc000b00, table_list=0x7f69dc013978, conds=0x7f69dc014158, order_list=0x7f69dc005260, limit=18446744073709551615, options=0, result=0x0) at /data/src/bb-10.3-temporal/sql/sql_delete.cc:490
#11 0x00005614e4990935 in mysql_execute_command (thd=0x7f69dc000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:4905
#12 0x00005614e499a3f6 in mysql_parse (thd=0x7f69dc000b00, rawbuf=0x7f69dc013888 "DELETE IGNORE FROM t1 WHERE a = 5", length=33, parser_state=0x7f69f97075f0, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:7991
#13 0x00005614e4987b97 in dispatch_command (command=COM_QUERY, thd=0x7f69dc000b00, packet=0x7f69dc00b151 "DELETE IGNORE FROM t1 WHERE a = 5", packet_length=33, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1825
#14 0x00005614e49865cb in do_command (thd=0x7f69dc000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1370
#15 0x00005614e4aee354 in do_handle_one_connection (connect=0x5614e7b2abe0) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1420
#16 0x00005614e4aee0e1 in handle_one_connection (arg=0x5614e7b2abe0) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1326
#17 0x00005614e4f88c5a in pfs_spawn_thread (arg=0x5614e7b33000) at /data/src/bb-10.3-temporal/storage/perfschema/pfs.cc:1863
#18 0x00007f6a011b9494 in start_thread (arg=0x7f69f9708700) at pthread_create.c:333
#19 0x00007f69ff59f93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
Reproducible with at least MyISAM and InnoDB.
{"report":{"fcp":2241.1000003814697,"ttfb":706.6999998092651,"pageVisibility":"visible","entityId":65061,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"1b8f4b9c-6adc-489d-8937-8517548f876c","navigationType":0,"readyForUser":2305,"redirectCount":0,"resourceLoadedEnd":1882.1999998092651,"resourceLoadedStart":715.1999998092651,"resourceTiming":[{"duration":339.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":715.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":715.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1054.5,"responseStart":0,"secureConnectionStart":0},{"duration":339.30000019073486,"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":715.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":715.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1054.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":790.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":715.8000001907349,"connectEnd":715.8000001907349,"connectStart":715.8000001907349,"domainLookupEnd":715.8000001907349,"domainLookupStart":715.8000001907349,"fetchStart":715.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1056.4000005722046,"responseEnd":1506.1999998092651,"responseStart":1068.6000003814697,"secureConnectionStart":715.8000001907349},{"duration":1116.3000001907349,"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":716,"connectEnd":716,"connectStart":716,"domainLookupEnd":716,"domainLookupStart":716,"fetchStart":716,"redirectEnd":0,"redirectStart":0,"requestStart":1060.4000005722046,"responseEnd":1832.3000001907349,"responseStart":1075.9000005722046,"secureConnectionStart":716},{"duration":365.80000019073486,"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":716.1000003814697,"connectEnd":716.1000003814697,"connectStart":716.1000003814697,"domainLookupEnd":716.1000003814697,"domainLookupStart":716.1000003814697,"fetchStart":716.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1060.6000003814697,"responseEnd":1081.9000005722046,"responseStart":1080.6000003814697,"secureConnectionStart":716.1000003814697},{"duration":402.69999980926514,"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":716.3000001907349,"connectEnd":716.3000001907349,"connectStart":716.3000001907349,"domainLookupEnd":716.3000001907349,"domainLookupStart":716.3000001907349,"fetchStart":716.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1096.9000005722046,"responseEnd":1119,"responseStart":1116.1999998092651,"secureConnectionStart":716.3000001907349},{"duration":432.80000019073486,"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":716.5,"connectEnd":716.5,"connectStart":716.5,"domainLookupEnd":716.5,"domainLookupStart":716.5,"fetchStart":716.5,"redirectEnd":0,"redirectStart":0,"requestStart":1097.9000005722046,"responseEnd":1149.3000001907349,"responseStart":1136.8000001907349,"secureConnectionStart":716.5},{"duration":380.30000019073486,"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":716.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":716.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1096.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":433.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":716.8000001907349,"connectEnd":716.8000001907349,"connectStart":716.8000001907349,"domainLookupEnd":716.8000001907349,"domainLookupStart":716.8000001907349,"fetchStart":716.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1098.6000003814697,"responseEnd":1150.4000005722046,"responseStart":1140.5,"secureConnectionStart":716.8000001907349},{"duration":380.4000005722046,"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":717,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":717,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1097.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":439.19999980926514,"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":717.1000003814697,"connectEnd":717.1000003814697,"connectStart":717.1000003814697,"domainLookupEnd":717.1000003814697,"domainLookupStart":717.1000003814697,"fetchStart":717.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1099.5,"responseEnd":1156.3000001907349,"responseStart":1145,"secureConnectionStart":717.1000003814697},{"duration":1141.6999998092651,"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":723.8000001907349,"connectEnd":723.8000001907349,"connectStart":723.8000001907349,"domainLookupEnd":723.8000001907349,"domainLookupStart":723.8000001907349,"fetchStart":723.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1277.8000001907349,"responseEnd":1865.5,"responseStart":1860.6999998092651,"secureConnectionStart":723.8000001907349},{"duration":1158.2999992370605,"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":723.9000005722046,"connectEnd":723.9000005722046,"connectStart":723.9000005722046,"domainLookupEnd":723.9000005722046,"domainLookupStart":723.9000005722046,"fetchStart":723.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1337.1999998092651,"responseEnd":1882.1999998092651,"responseStart":1868.5,"secureConnectionStart":723.9000005722046},{"duration":346.30000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1648.1999998092651,"connectEnd":1648.1999998092651,"connectStart":1648.1999998092651,"domainLookupEnd":1648.1999998092651,"domainLookupStart":1648.1999998092651,"fetchStart":1648.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1961.1000003814697,"responseEnd":1994.5,"responseStart":1993.6999998092651,"secureConnectionStart":1648.1999998092651}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":526,"responseStart":707,"responseEnd":724,"domLoading":712,"domInteractive":2406,"domContentLoadedEventStart":2406,"domContentLoadedEventEnd":2471,"domComplete":3424,"loadEventStart":3424,"loadEventEnd":3424,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2386.9000005722046},{"name":"bigPipe.sidebar-id.end","time":2388},{"name":"bigPipe.activity-panel-pipe-id.start","time":2388.199999809265},{"name":"bigPipe.activity-panel-pipe-id.end","time":2389},{"name":"activityTabFullyLoaded","time":2484.199999809265}],"measures":[],"correlationId":"5878de51dc9244","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":94,"dbReadsTimeInMs":12,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Fixed in https://github.com/MariaDB/server/commit/5dddbafa4eea04cbec1c07c397403900ea12341e