--source include/have_partition.inc
|
|
CREATE TABLE t (a INT) WITH SYSTEM VERSIONING PARTITION BY SYSTEM_TIME;
|
--delimiter $
|
CREATE FUNCTION f() RETURNS INT
|
BEGIN
|
UPDATE t SET a = 1;
|
RETURN 1;
|
END $
|
--delimiter ;
|
CREATE PROCEDURE p() SELECT f();
|
CALL p();
|
CALL p();
|
|
# Cleanup
|
DROP PROCEDURE p;
|
DROP FUNCTION f;
|
DROP TABLE t;
|
10.9 d8997f87
|
mariadbd: /data/src/10.9/sql/partition_info.cc:802: bool partition_info::vers_set_hist_part(THD*, uint*): Assertion `!thd->lex->last_table() || !thd->lex->last_table()->vers_conditions.delete_history' failed.
|
230511 17:30:58 [ERROR] mysqld got signal 6 ;
|
|
#9 0x00007f664ec53df2 in __GI___assert_fail (assertion=0x55d320585200 "!thd->lex->last_table() || !thd->lex->last_table()->vers_conditions.delete_history", file=0x55d320584220 "/data/src/10.9/sql/partition_info.cc", line=802, function=0x55d320585280 "bool partition_info::vers_set_hist_part(THD*, uint*)") at ./assert/assert.c:101
|
#10 0x000055d31e82a618 in partition_info::vers_set_hist_part (this=0x61d000233cb8, thd=0x62b00007e218, create_count=0x7f66475675e4) at /data/src/10.9/sql/partition_info.cc:802
|
#11 0x000055d31e236292 in TABLE::vers_switch_partition (this=0x619000099298, thd=0x62b00007e218, table_list=0x625000190ac0, ot_ctx=0x7f66475675b0) at /data/src/10.9/sql/sql_base.cc:1761
|
#12 0x000055d31e238cb7 in open_table (thd=0x62b00007e218, table_list=0x625000190ac0, ot_ctx=0x7f66475675b0) at /data/src/10.9/sql/sql_base.cc:2215
|
#13 0x000055d31e243896 in open_and_process_table (thd=0x62b00007e218, tables=0x625000190ac0, counter=0x7f66475676c0, flags=0, prelocking_strategy=0x7f66475677d0, has_prelocking_list=true, ot_ctx=0x7f66475675b0) at /data/src/10.9/sql/sql_base.cc:4070
|
#14 0x000055d31e2466b3 in open_tables (thd=0x62b00007e218, options=..., start=0x7f66475676d0, counter=0x7f66475676c0, flags=0, prelocking_strategy=0x7f66475677d0) at /data/src/10.9/sql/sql_base.cc:4595
|
#15 0x000055d31e24b7b8 in open_and_lock_tables (thd=0x62b00007e218, options=..., tables=0x625000190ac0, derived=true, flags=0, prelocking_strategy=0x7f66475677d0) at /data/src/10.9/sql/sql_base.cc:5569
|
#16 0x000055d31e1a1c90 in open_and_lock_tables (thd=0x62b00007e218, tables=0x625000190ac0, derived=true, flags=0) at /data/src/10.9/sql/sql_base.h:510
|
#17 0x000055d31e3ffbf3 in execute_sqlcom_select (thd=0x62b00007e218, all_tables=0x625000190ac0) at /data/src/10.9/sql/sql_parse.cc:6198
|
#18 0x000055d31e3eec50 in mysql_execute_command (thd=0x62b00007e218, is_called_from_prepared_stmt=false) at /data/src/10.9/sql/sql_parse.cc:3948
|
#19 0x000055d31e18b76d in sp_instr_stmt::exec_core (this=0x62500018cda0, thd=0x62b00007e218, nextp=0x7f6647568b90) at /data/src/10.9/sql/sp_head.cc:3857
|
#20 0x000055d31e189d46 in sp_lex_keeper::reset_lex_and_exec_core (this=0x62500018cde8, thd=0x62b00007e218, nextp=0x7f6647568b90, open_tables=false, instr=0x62500018cda0) at /data/src/10.9/sql/sp_head.cc:3582
|
#21 0x000055d31e18af00 in sp_instr_stmt::execute (this=0x62500018cda0, thd=0x62b00007e218, nextp=0x7f6647568b90) at /data/src/10.9/sql/sp_head.cc:3763
|
#22 0x000055d31e17b8c2 in sp_head::execute (this=0x625000188938, thd=0x62b00007e218, merge_da_on_success=true) at /data/src/10.9/sql/sp_head.cc:1459
|
#23 0x000055d31e181982 in sp_head::execute_procedure (this=0x625000188938, thd=0x62b00007e218, args=0x62b000083578) at /data/src/10.9/sql/sp_head.cc:2446
|
#24 0x000055d31e3e7df5 in do_execute_sp (thd=0x62b00007e218, sp=0x625000188938) at /data/src/10.9/sql/sql_parse.cc:3024
|
#25 0x000055d31e3e996a in Sql_cmd_call::execute (this=0x6290000e6308, thd=0x62b00007e218) at /data/src/10.9/sql/sql_parse.cc:3270
|
#26 0x000055d31e3fe1ec in mysql_execute_command (thd=0x62b00007e218, is_called_from_prepared_stmt=false) at /data/src/10.9/sql/sql_parse.cc:6014
|
#27 0x000055d31e40b67e in mysql_parse (thd=0x62b00007e218, rawbuf=0x6290000e6238 "CALL p()", length=8, parser_state=0x7f664756aa30) at /data/src/10.9/sql/sql_parse.cc:8043
|
#28 0x000055d31e3e12fe in dispatch_command (command=COM_QUERY, thd=0x62b00007e218, packet=0x629000262219 "CALL p()", packet_length=8, blocking=true) at /data/src/10.9/sql/sql_parse.cc:1894
|
#29 0x000055d31e3de054 in do_command (thd=0x62b00007e218, blocking=true) at /data/src/10.9/sql/sql_parse.cc:1407
|
#30 0x000055d31e891f3e in do_handle_one_connection (connect=0x608000002cb8, put_in_cache=true) at /data/src/10.9/sql/sql_connect.cc:1416
|
#31 0x000055d31e8918ff in handle_one_connection (arg=0x608000002c38) at /data/src/10.9/sql/sql_connect.cc:1318
|
#32 0x000055d31f49aa30 in pfs_spawn_thread (arg=0x617000005b98) at /data/src/10.9/storage/perfschema/pfs.cc:2201
|
#33 0x00007f664eca7fd4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
|
#34 0x00007f664ed285bc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
|
Reproducible on 10.9+ with at least InnoDB, MyISAM, Aria.
No obvious immediate problem on a non-debug build.
The failure appeared in 10.9.1 since these two revisions (I couldn't build the first one, so not sure which of them)
commit 75ede427e429b24001fc55bb284c110875fbf85a
|
Author: Aleksey Midenkov
|
Date: Fri May 6 10:45:17 2022 +0300
|
|
MDEV-27328 Change of SYSTEM_TIME partitioning options is not possible without data copy
|
commit 92bfc0e8c4bb5c86359c29458d67f3e7836ec18a
|
Author: Aleksey Midenkov
|
Date: Fri May 6 10:45:17 2022 +0300
|
|
MDEV-17554 Auto-create new partition for system versioned tables with history partitioned by INTERVAL/LIMIT
|
{"report":{"fcp":926.4000000953674,"ttfb":132.70000004768372,"pageVisibility":"visible","entityId":121788,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"f98519b0-4460-48e8-be85-1ad419f80cfe","navigationType":0,"readyForUser":993.6000001430511,"redirectCount":0,"resourceLoadedEnd":1129.7000000476837,"resourceLoadedStart":138.60000014305115,"resourceTiming":[{"duration":318.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":138.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":138.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":457.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":318.2999999523163,"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":138.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":138.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":457.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":327.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":139,"connectEnd":139,"connectStart":139,"domainLookupEnd":139,"domainLookupStart":139,"fetchStart":139,"redirectEnd":0,"redirectStart":0,"requestStart":139,"responseEnd":466.2000000476837,"responseStart":466.2000000476837,"secureConnectionStart":139},{"duration":360.5,"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":139,"connectEnd":139,"connectStart":139,"domainLookupEnd":139,"domainLookupStart":139,"fetchStart":139,"redirectEnd":0,"redirectStart":0,"requestStart":139,"responseEnd":499.5,"responseStart":499.5,"secureConnectionStart":139},{"duration":363.90000009536743,"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":139.20000004768372,"connectEnd":139.20000004768372,"connectStart":139.20000004768372,"domainLookupEnd":139.20000004768372,"domainLookupStart":139.20000004768372,"fetchStart":139.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":139.20000004768372,"responseEnd":503.10000014305115,"responseStart":503.10000014305115,"secureConnectionStart":139.20000004768372},{"duration":364.40000009536743,"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":139.20000004768372,"connectEnd":139.20000004768372,"connectStart":139.20000004768372,"domainLookupEnd":139.20000004768372,"domainLookupStart":139.20000004768372,"fetchStart":139.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":139.20000004768372,"responseEnd":503.60000014305115,"responseStart":503.60000014305115,"secureConnectionStart":139.20000004768372},{"duration":365,"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":139.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":139.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":504.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":364.5,"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":139.40000009536743,"connectEnd":139.40000009536743,"connectStart":139.40000009536743,"domainLookupEnd":139.40000009536743,"domainLookupStart":139.40000009536743,"fetchStart":139.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":139.40000009536743,"responseEnd":503.90000009536743,"responseStart":503.90000009536743,"secureConnectionStart":139.40000009536743},{"duration":364.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":139.5,"connectEnd":139.5,"connectStart":139.5,"domainLookupEnd":139.5,"domainLookupStart":139.5,"fetchStart":139.5,"redirectEnd":0,"redirectStart":0,"requestStart":139.5,"responseEnd":504.40000009536743,"responseStart":504.40000009536743,"secureConnectionStart":139.5},{"duration":365.2000000476837,"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":139.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":139.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":504.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":365.2000000476837,"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":139.90000009536743,"connectEnd":139.90000009536743,"connectStart":139.90000009536743,"domainLookupEnd":139.90000009536743,"domainLookupStart":139.90000009536743,"fetchStart":139.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":139.90000009536743,"responseEnd":505.10000014305115,"responseStart":505.10000014305115,"secureConnectionStart":139.90000009536743},{"duration":506.5,"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":140.40000009536743,"connectEnd":140.40000009536743,"connectStart":140.40000009536743,"domainLookupEnd":140.40000009536743,"domainLookupStart":140.40000009536743,"fetchStart":140.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":140.40000009536743,"responseEnd":646.9000000953674,"responseStart":646.9000000953674,"secureConnectionStart":140.40000009536743},{"duration":989.2000000476837,"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":140.5,"connectEnd":140.5,"connectStart":140.5,"domainLookupEnd":140.5,"domainLookupStart":140.5,"fetchStart":140.5,"redirectEnd":0,"redirectStart":0,"requestStart":140.5,"responseEnd":1129.7000000476837,"responseStart":1129.7000000476837,"secureConnectionStart":140.5},{"duration":386.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":694.4000000953674,"connectEnd":694.4000000953674,"connectStart":694.4000000953674,"domainLookupEnd":694.4000000953674,"domainLookupStart":694.4000000953674,"fetchStart":694.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":694.4000000953674,"responseEnd":1080.9000000953674,"responseStart":1080.8000001907349,"secureConnectionStart":694.4000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":11,"responseStart":133,"responseEnd":136,"domLoading":136,"domInteractive":1147,"domContentLoadedEventStart":1147,"domContentLoadedEventEnd":1183,"domComplete":1948,"loadEventStart":1948,"loadEventEnd":1950,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1131.5},{"name":"bigPipe.sidebar-id.end","time":1132.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1132.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1134.7000000476837},{"name":"activityTabFullyLoaded","time":1188.8000001907349}],"measures":[],"correlationId":"3b4bd6ee09e38","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":62,"dbReadsTimeInMs":8,"dbConnsTimeInMs":15,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}