--source include/have_innodb.inc
|
|
CREATE OR REPLACE TABLE t1 (a INT, b INT GENERATED ALWAYS AS (0) STORED) ENGINE=InnoDB WITH SYSTEM VERSIONING;
|
SET system_versioning_alter_history= KEEP;
|
ALTER TABLE t1 MODIFY a INT WITH SYSTEM VERSIONING;
|
|
# Cleanup
|
DROP TABLE t1;
|
10.4 89b463ee
|
mysqld: /data/src/10.3/storage/innobase/handler/ha_innodb.cc:6389: unsigned int innodb_col_no(const Field*): Assertion `!((field)->vcol_info && (field)->stored_in_db())' failed.
|
190309 15:25:13 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007fa9a9c49ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x0000564dd97dbe5c in innodb_col_no (field=0x7fa95000a8d0) at /data/src/10.3/storage/innobase/handler/ha_innodb.cc:6389
|
#9 0x0000564dd98228e0 in vers_change_fields_cache (ha_alter_info=0x7fa99ef508b0, ctx=0x7fa9500168f0, table=0x7fa95000cb80) at /data/src/10.3/storage/innobase/handler/handler0alter.cc:8628
|
#10 0x0000564dd982bd31 in commit_cache_norebuild (ha_alter_info=0x7fa99ef508b0, ctx=0x7fa9500168f0, table=0x7fa95000cb80, trx=0x7fa9a42881c8) at /data/src/10.3/storage/innobase/handler/handler0alter.cc:9284
|
#11 0x0000564dd9824bb1 in ha_innobase::commit_inplace_alter_table (this=0x7fa9500a6f18, altered_table=0x7fa950182300, ha_alter_info=0x7fa99ef508b0, commit=true) at /data/src/10.3/storage/innobase/handler/handler0alter.cc:9914
|
#12 0x0000564dd94c599c in handler::ha_commit_inplace_alter_table (this=0x7fa9500a6f18, altered_table=0x7fa950182300, ha_alter_info=0x7fa99ef508b0, commit=true) at /data/src/10.3/sql/handler.cc:4538
|
#13 0x0000564dd929a24a in mysql_inplace_alter_table (thd=0x7fa950000b00, table_list=0x7fa950014e10, table=0x7fa95000cb80, altered_table=0x7fa950182300, ha_alter_info=0x7fa99ef508b0, inplace_supported=HA_ALTER_INPLACE_INSTANT, target_mdl_request=0x7fa99ef50ae0, alter_ctx=0x7fa99ef51090) at /data/src/10.3/sql/sql_table.cc:7593
|
#14 0x0000564dd92a03c4 in mysql_alter_table (thd=0x7fa950000b00, new_db=0x7fa9500051d0, new_name=0x7fa950005590, create_info=0x7fa99ef51c80, table_list=0x7fa950014e10, alter_info=0x7fa99ef51bc0, order_num=0, order=0x0, ignore=false) at /data/src/10.3/sql/sql_table.cc:9758
|
#15 0x0000564dd9328591 in Sql_cmd_alter_table::execute (this=0x7fa950015578, thd=0x7fa950000b00) at /data/src/10.3/sql/sql_alter.cc:497
|
#16 0x0000564dd91c96de in mysql_execute_command (thd=0x7fa950000b00) at /data/src/10.3/sql/sql_parse.cc:6335
|
#17 0x0000564dd91ce7a0 in mysql_parse (thd=0x7fa950000b00, rawbuf=0x7fa950014cf8 "ALTER TABLE t1 MODIFY a INT WITH SYSTEM VERSIONING", length=50, parser_state=0x7fa99ef535f0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:8142
|
#18 0x0000564dd91bb88b in dispatch_command (command=COM_QUERY, thd=0x7fa950000b00, packet=0x7fa950162281 "ALTER TABLE t1 MODIFY a INT WITH SYSTEM VERSIONING", packet_length=50, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1854
|
#19 0x0000564dd91ba275 in do_command (thd=0x7fa950000b00) at /data/src/10.3/sql/sql_parse.cc:1396
|
#20 0x0000564dd9322b1b in do_handle_one_connection (connect=0x564ddc5d7df0) at /data/src/10.3/sql/sql_connect.cc:1403
|
#21 0x0000564dd932289f in handle_one_connection (arg=0x564ddc5d7df0) at /data/src/10.3/sql/sql_connect.cc:1309
|
#22 0x0000564dd97bf141 in pfs_spawn_thread (arg=0x564ddc51d180) at /data/src/10.3/storage/perfschema/pfs.cc:1862
|
#23 0x00007fa9ab920494 in start_thread (arg=0x7fa99ef54700) at pthread_create.c:333
|
#24 0x00007fa9a9d0693f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
No obvious effect on a non-debug build.
- relates to
-
MDEV-19029
Better handling of system versioning for generated stored columns
-
-
Open
{"report":{"fcp":969,"ttfb":340,"pageVisibility":"visible","entityId":73059,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"e333cdd5-16cd-4dde-95a2-f10770a90ed5","navigationType":0,"readyForUser":1054.3999999761581,"redirectCount":0,"resourceLoadedEnd":1119.3999999761581,"resourceLoadedStart":345.89999997615814,"resourceTiming":[{"duration":85,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":345.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":345.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":430.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":84.89999997615814,"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":346.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":346.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":431.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":139.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":346.5,"connectEnd":346.5,"connectStart":346.5,"domainLookupEnd":346.5,"domainLookupStart":346.5,"fetchStart":346.5,"redirectEnd":0,"redirectStart":0,"requestStart":346.5,"responseEnd":485.7999999523163,"responseStart":485.7999999523163,"secureConnectionStart":346.5},{"duration":218.5,"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":346.7000000476837,"connectEnd":346.7000000476837,"connectStart":346.7000000476837,"domainLookupEnd":346.7000000476837,"domainLookupStart":346.7000000476837,"fetchStart":346.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":346.7000000476837,"responseEnd":565.2000000476837,"responseStart":565.2000000476837,"secureConnectionStart":346.7000000476837},{"duration":222.10000002384186,"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":347.10000002384186,"connectEnd":347.10000002384186,"connectStart":347.10000002384186,"domainLookupEnd":347.10000002384186,"domainLookupStart":347.10000002384186,"fetchStart":347.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":347.10000002384186,"responseEnd":569.2000000476837,"responseStart":569.2000000476837,"secureConnectionStart":347.10000002384186},{"duration":222.20000004768372,"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":347.39999997615814,"connectEnd":347.39999997615814,"connectStart":347.39999997615814,"domainLookupEnd":347.39999997615814,"domainLookupStart":347.39999997615814,"fetchStart":347.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":347.39999997615814,"responseEnd":569.6000000238419,"responseStart":569.6000000238419,"secureConnectionStart":347.39999997615814},{"duration":222.29999995231628,"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":347.60000002384186,"connectEnd":347.60000002384186,"connectStart":347.60000002384186,"domainLookupEnd":347.60000002384186,"domainLookupStart":347.60000002384186,"fetchStart":347.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":347.60000002384186,"responseEnd":569.8999999761581,"responseStart":569.8999999761581,"secureConnectionStart":347.60000002384186},{"duration":280.2000000476837,"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":347.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":347.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":628,"responseStart":0,"secureConnectionStart":0},{"duration":222.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":347.89999997615814,"connectEnd":347.89999997615814,"connectStart":347.89999997615814,"domainLookupEnd":347.89999997615814,"domainLookupStart":347.89999997615814,"fetchStart":347.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":347.89999997615814,"responseEnd":570.2999999523163,"responseStart":570.2999999523163,"secureConnectionStart":347.89999997615814},{"duration":280.10000002384186,"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":348.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":348.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":628.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":222.60000002384186,"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":348.2999999523163,"connectEnd":348.2999999523163,"connectStart":348.2999999523163,"domainLookupEnd":348.2999999523163,"domainLookupStart":348.2999999523163,"fetchStart":348.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":348.2999999523163,"responseEnd":570.8999999761581,"responseStart":570.8999999761581,"secureConnectionStart":348.2999999523163},{"duration":367.1999999284744,"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":349.2000000476837,"connectEnd":349.2000000476837,"connectStart":349.2000000476837,"domainLookupEnd":349.2000000476837,"domainLookupStart":349.2000000476837,"fetchStart":349.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":349.2000000476837,"responseEnd":716.3999999761581,"responseStart":716.3999999761581,"secureConnectionStart":349.2000000476837},{"duration":765.1999999284744,"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":354.2000000476837,"connectEnd":354.2000000476837,"connectStart":354.2000000476837,"domainLookupEnd":354.2000000476837,"domainLookupStart":354.2000000476837,"fetchStart":354.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":354.2000000476837,"responseEnd":1119.3999999761581,"responseStart":1119.3999999761581,"secureConnectionStart":354.2000000476837},{"duration":191.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":640.7000000476837,"connectEnd":640.7000000476837,"connectStart":640.7000000476837,"domainLookupEnd":640.7000000476837,"domainLookupStart":640.7000000476837,"fetchStart":640.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":640.7000000476837,"responseEnd":831.7999999523163,"responseStart":831.7999999523163,"secureConnectionStart":640.7000000476837},{"duration":300.60000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":919.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":919.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1220.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":283.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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&whisper-enabled=true","startTime":920.5,"connectEnd":920.5,"connectStart":920.5,"domainLookupEnd":920.5,"domainLookupStart":920.5,"fetchStart":920.5,"redirectEnd":0,"redirectStart":0,"requestStart":920.5,"responseEnd":1203.6000000238419,"responseStart":1203.6000000238419,"secureConnectionStart":920.5},{"duration":289.8000000715256,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":920.8999999761581,"connectEnd":920.8999999761581,"connectStart":920.8999999761581,"domainLookupEnd":920.8999999761581,"domainLookupStart":920.8999999761581,"fetchStart":920.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":920.8999999761581,"responseEnd":1210.7000000476837,"responseStart":1210.7000000476837,"secureConnectionStart":920.8999999761581}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":179,"responseStart":340,"responseEnd":352,"domLoading":344,"domInteractive":1176,"domContentLoadedEventStart":1176,"domContentLoadedEventEnd":1220,"domComplete":1567,"loadEventStart":1567,"loadEventEnd":1568,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1156.7000000476837},{"name":"bigPipe.sidebar-id.end","time":1157.6000000238419},{"name":"bigPipe.activity-panel-pipe-id.start","time":1157.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1159.6000000238419},{"name":"activityTabFullyLoaded","time":1235.7000000476837}],"measures":[],"correlationId":"be687367ce7a76","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":98,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Please test with some data inside the table, and with ALGORITHM=COPY as well.
I did not quite understand this. Are generated columns supposed to never be system versioned, even when they are stored inside the table? If so, what is the technical reason for that?
Please test the following too: