Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
N/A
--source include/have_innodb.inc
--source include/have_partition.inc
CREATE OR REPLACE TABLE t1 (i INT ) ENGINE=InnoDB WITH SYSTEM VERSIONING PARTITION BY system_time INTERVAL 1 HOUR (PARTITION p1 HISTORY, PARTITION pn CURRENT );
SET AUTOCOMMIT = OFF ;
TRUNCATE TABLE t1;
# Cleanup
DROP TABLE t1;
bb-10.3-temporal e6c5eb5c583b
mysqld: /data/src/bb-10.3-temporal/storage/innobase/row/row0trunc.cc:1805: dberr_t row_truncate_table_for_mysql(dict_table_t*, trx_t*): Assertion `(trx)->start_file == 0' failed.
171221 20:41:34 [ERROR] mysqld got signal 6 ;
#7 0x00007fe9bf955ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#8 0x000055d96339927e in row_truncate_table_for_mysql (table=0x7fe9600a0068, trx=0x7fe9b985a0d8) at /data/src/bb-10.3-temporal/storage/innobase/row/row0trunc.cc:1805
#9 0x000055d9631fa7e1 in ha_innobase::truncate (this=0x7fe960073188) at /data/src/bb-10.3-temporal/storage/innobase/handler/ha_innodb.cc:13381
#10 0x000055d962ebfd2f in handler::ha_truncate (this=0x7fe960073188) at /data/src/bb-10.3-temporal/sql/handler.cc:4284
#11 0x000055d963658597 in ha_partition::truncate (this=0x7fe960072918) at /data/src/bb-10.3-temporal/sql/ha_partition.cc:4588
#12 0x000055d962ebfd2f in handler::ha_truncate (this=0x7fe960072918) at /data/src/bb-10.3-temporal/sql/handler.cc:4284
#13 0x000055d9630a0f78 in Sql_cmd_truncate_table::handler_truncate (this=0x7fe960015350, thd=0x7fe960000b00, table_ref=0x7fe960014d18, is_tmp_table=false) at /data/src/bb-10.3-temporal/sql/sql_truncate.cc:247
#14 0x000055d9630a1642 in Sql_cmd_truncate_table::truncate_table (this=0x7fe960015350, thd=0x7fe960000b00, table_ref=0x7fe960014d18) at /data/src/bb-10.3-temporal/sql/sql_truncate.cc:446
#15 0x000055d9630a17b4 in Sql_cmd_truncate_table::execute (this=0x7fe960015350, thd=0x7fe960000b00) at /data/src/bb-10.3-temporal/sql/sql_truncate.cc:502
#16 0x000055d962bda81a in mysql_execute_command (thd=0x7fe960000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:6261
#17 0x000055d962bdf358 in mysql_parse (thd=0x7fe960000b00, rawbuf=0x7fe960014c48 "TRUNCATE TABLE t1", length=17, parser_state=0x7fe9b855d5f0, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:7991
#18 0x000055d962bccaf9 in dispatch_command (command=COM_QUERY, thd=0x7fe960000b00, packet=0x7fe9601200b1 "TRUNCATE TABLE t1", packet_length=17, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1825
#19 0x000055d962bcb52d in do_command (thd=0x7fe960000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1370
#20 0x000055d962d331dc in do_handle_one_connection (connect=0x55d966962b70) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1420
#21 0x000055d962d32f69 in handle_one_connection (arg=0x55d966962b70) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1326
#22 0x000055d9631cdb92 in pfs_spawn_thread (arg=0x55d966a05590) at /data/src/bb-10.3-temporal/storage/perfschema/pfs.cc:1863
#23 0x00007fe9c162c494 in start_thread (arg=0x7fe9b855e700) at pthread_create.c:333
#24 0x00007fe9bfa1293f in clone () from /lib/x86_64-linux-gnu/libc.so.6
It was reproducible on a previous build as well.
is duplicated by
MDEV-14742
Assertion `0' failed in Protocol::end_statement
Closed
{"report":{"fcp":1033.800000000745,"ttfb":360.1000000014901,"pageVisibility":"visible","entityId":64959,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"97a647c6-306e-4855-a355-bf97cb6dd369","navigationType":0,"readyForUser":1113.6000000014901,"redirectCount":0,"resourceLoadedEnd":1321.7000000029802,"resourceLoadedStart":365.20000000298023,"resourceTiming":[{"duration":185.59999999776483,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":365.20000000298023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":365.20000000298023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":550.8000000007451,"responseStart":0,"secureConnectionStart":0},{"duration":185.69999999925494,"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":365.4000000022352,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":365.4000000022352,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":551.1000000014901,"responseStart":0,"secureConnectionStart":0},{"duration":196.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":365.6000000014901,"connectEnd":365.6000000014901,"connectStart":365.6000000014901,"domainLookupEnd":365.6000000014901,"domainLookupStart":365.6000000014901,"fetchStart":365.6000000014901,"redirectEnd":0,"redirectStart":0,"requestStart":365.6000000014901,"responseEnd":562.1000000014901,"responseStart":562.1000000014901,"secureConnectionStart":365.6000000014901},{"duration":286.19999999925494,"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":365.80000000074506,"connectEnd":365.80000000074506,"connectStart":365.80000000074506,"domainLookupEnd":365.80000000074506,"domainLookupStart":365.80000000074506,"fetchStart":365.80000000074506,"redirectEnd":0,"redirectStart":0,"requestStart":365.80000000074506,"responseEnd":652,"responseStart":652,"secureConnectionStart":365.80000000074506},{"duration":289.80000000074506,"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":366,"connectEnd":366,"connectStart":366,"domainLookupEnd":366,"domainLookupStart":366,"fetchStart":366,"redirectEnd":0,"redirectStart":0,"requestStart":366,"responseEnd":655.8000000007451,"responseStart":655.8000000007451,"secureConnectionStart":366},{"duration":290,"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":366.20000000298023,"connectEnd":366.20000000298023,"connectStart":366.20000000298023,"domainLookupEnd":366.20000000298023,"domainLookupStart":366.20000000298023,"fetchStart":366.20000000298023,"redirectEnd":0,"redirectStart":0,"requestStart":366.20000000298023,"responseEnd":656.2000000029802,"responseStart":656.2000000029802,"secureConnectionStart":366.20000000298023},{"duration":290.19999999925494,"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":366.4000000022352,"connectEnd":366.4000000022352,"connectStart":366.4000000022352,"domainLookupEnd":366.4000000022352,"domainLookupStart":366.4000000022352,"fetchStart":366.4000000022352,"redirectEnd":0,"redirectStart":0,"requestStart":366.4000000022352,"responseEnd":656.6000000014901,"responseStart":656.6000000014901,"secureConnectionStart":366.4000000022352},{"duration":336,"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":366.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":366.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":702.5,"responseStart":0,"secureConnectionStart":0},{"duration":290.29999999701977,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":366.70000000298023,"connectEnd":366.70000000298023,"connectStart":366.70000000298023,"domainLookupEnd":366.70000000298023,"domainLookupStart":366.70000000298023,"fetchStart":366.70000000298023,"redirectEnd":0,"redirectStart":0,"requestStart":366.70000000298023,"responseEnd":657,"responseStart":657,"secureConnectionStart":366.70000000298023},{"duration":335.9000000022352,"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":366.80000000074506,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":366.80000000074506,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":702.7000000029802,"responseStart":0,"secureConnectionStart":0},{"duration":290.5999999977648,"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":366.9000000022352,"connectEnd":366.9000000022352,"connectStart":366.9000000022352,"domainLookupEnd":366.9000000022352,"domainLookupStart":366.9000000022352,"fetchStart":366.9000000022352,"redirectEnd":0,"redirectStart":0,"requestStart":366.9000000022352,"responseEnd":657.5,"responseStart":657.5,"secureConnectionStart":366.9000000022352},{"duration":433.5,"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":371.80000000074506,"connectEnd":371.80000000074506,"connectStart":371.80000000074506,"domainLookupEnd":371.80000000074506,"domainLookupStart":371.80000000074506,"fetchStart":371.80000000074506,"redirectEnd":0,"redirectStart":0,"requestStart":371.80000000074506,"responseEnd":805.3000000007451,"responseStart":805.3000000007451,"secureConnectionStart":371.80000000074506},{"duration":949.8000000007451,"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":371.9000000022352,"connectEnd":371.9000000022352,"connectStart":371.9000000022352,"domainLookupEnd":371.9000000022352,"domainLookupStart":371.9000000022352,"fetchStart":371.9000000022352,"redirectEnd":0,"redirectStart":0,"requestStart":371.9000000022352,"responseEnd":1321.7000000029802,"responseStart":1321.7000000029802,"secureConnectionStart":371.9000000022352},{"duration":91.80000000074506,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":714,"connectEnd":714,"connectStart":714,"domainLookupEnd":714,"domainLookupStart":714,"fetchStart":714,"redirectEnd":0,"redirectStart":0,"requestStart":714,"responseEnd":805.8000000007451,"responseStart":805.8000000007451,"secureConnectionStart":714},{"duration":362.8999999985099,"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":987.1000000014901,"connectEnd":987.1000000014901,"connectStart":987.1000000014901,"domainLookupEnd":987.1000000014901,"domainLookupStart":987.1000000014901,"fetchStart":987.1000000014901,"redirectEnd":0,"redirectStart":0,"requestStart":987.1000000014901,"responseEnd":1350,"responseStart":1350,"secureConnectionStart":987.1000000014901}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":192,"responseStart":360,"responseEnd":368,"domLoading":363,"domInteractive":1339,"domContentLoadedEventStart":1339,"domContentLoadedEventEnd":1378,"domComplete":2185,"loadEventStart":2185,"loadEventEnd":2186,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1323.5},{"name":"bigPipe.sidebar-id.end","time":1324.300000000745},{"name":"bigPipe.activity-panel-pipe-id.start","time":1324.4000000022352},{"name":"bigPipe.activity-panel-pipe-id.end","time":1326.7000000029802},{"name":"activityTabFullyLoaded","time":1385.6000000014901}],"measures":[],"correlationId":"15b39fc39ee452","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":104,"dbReadsTimeInMs":14,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}