Set to blocker as it's a bug in a new feature in a soon-to-be GA.
--source include/have_binlog_format_mixed.inc
|
--source include/have_innodb.inc
|
--source include/have_debug_sync.inc
|
|
CREATE TABLE t1 (a INT, b TEXT) ENGINE=InnoDB;
|
CREATE TABLE t2 (a INT, b INT, c CHAR(8), d TEXT, UNIQUE(a)) ENGINE=InnoDB;
|
|
--connect (con1,localhost,root,,test)
|
START TRANSACTION;
|
CREATE TEMPORARY TABLE tmp (id INT, PRIMARY KEY(id)) ENGINE=InnoDB;
|
INSERT INTO t1 VALUES (1, REPEAT('x',8000)),(2, REPEAT('x',8000));
|
UPDATE t2 SET b = NULL ORDER BY b LIMIT 2;
|
INSERT INTO t1 VALUES (3, REPEAT('x',8000));
|
DELETE FROM t1;
|
INSERT INTO t2 VALUES (1,1,'f','e'),(1000,1000,'c','b');
|
COMMIT;
|
--send
|
SET debug_sync= 'NOW WAIT_FOR go_trx';
|
|
--connection default
|
SET debug_sync= 'alter_table_online_progress SIGNAL go_trx WAIT_FOR go_alter';
|
--send
|
ALTER TABLE t2 FORCE, ALGORITHM=COPY, LOCK=NONE;
|
|
--connection con1
|
--reap
|
START TRANSACTION;
|
DROP TEMPORARY TABLE IF EXISTS tmp;
|
--error ER_DUP_ENTRY
|
INSERT INTO t2 VALUES (3,3,'a','x'), (3,3,'a','x');
|
COMMIT;
|
set debug_sync= 'NOW SIGNAL go_alter';
|
|
--connection default
|
--reap
|
|
# Cleanup
|
DROP TABLE t1, t2;
|
11.2 9ad7c899
|
mariadbd: /data/src/11.2/sql/log.cc:8052: int Event_log::write_cache(THD*, IO_CACHE*): Assertion `!writer.checksum_len || writer.remains == 0' failed.
|
230907 20:29:34 [ERROR] mysqld got signal 6 ;
|
|
#9 0x00007f18bb453df2 in __GI___assert_fail (assertion=0x5583e5c76de0 "!writer.checksum_len || writer.remains == 0", file=0x5583e5c6bf20 "/data/src/11.2/sql/log.cc", line=8052, function=0x5583e5c76b60 "int Event_log::write_cache(THD*, IO_CACHE*)") at ./assert/assert.c:101
|
#10 0x00005583e425af27 in Event_log::write_cache (this=0x5583e7af1f28 <mysql_bin_log+8>, thd=0x62c000240218, cache=0x61b000040038) at /data/src/11.2/sql/log.cc:8052
|
#11 0x00005583e4262515 in MYSQL_BIN_LOG::write_transaction_or_stmt (this=0x5583e7af1f20 <mysql_bin_log>, entry=0x7f18a3249830, commit_id=0) at /data/src/11.2/sql/log.cc:9182
|
#12 0x00005583e425fc6f in MYSQL_BIN_LOG::trx_group_commit_leader (this=0x5583e7af1f20 <mysql_bin_log>, leader=0x7f18a3249830) at /data/src/11.2/sql/log.cc:8902
|
#13 0x00005583e425e773 in MYSQL_BIN_LOG::write_transaction_to_binlog_events (this=0x5583e7af1f20 <mysql_bin_log>, entry=0x7f18a3249830) at /data/src/11.2/sql/log.cc:8694
|
#14 0x00005583e425c5d1 in MYSQL_BIN_LOG::write_transaction_to_binlog (this=0x5583e7af1f20 <mysql_bin_log>, thd=0x62c000240218, cache_mngr=0x61b00003fe98, end_ev=0x7f18a3249cc0, all=true, using_stmt_cache=false, using_trx_cache=true, is_ro_1pc=true) at /data/src/11.2/sql/log.cc:8291
|
#15 0x00005583e4232bf1 in binlog_flush_cache (thd=0x62c000240218, cache_mngr=0x61b00003fe98, end_ev=0x7f18a3249cc0, all=true, using_stmt=false, using_trx=true, is_ro_1pc=true) at /data/src/11.2/sql/log.cc:1907
|
#16 0x00005583e42339f7 in binlog_commit_flush_trx_cache (thd=0x62c000240218, all=true, cache_mngr=0x61b00003fe98, ro_1pc=true) at /data/src/11.2/sql/log.cc:2006
|
#17 0x00005583e4236c1c in binlog_commit (thd=0x62c000240218, all=true, ro_1pc=true) at /data/src/11.2/sql/log.cc:2418
|
#18 0x00005583e3efc181 in commit_one_phase_2 (thd=0x62c000240218, all=true, trans=0x62c000243cc0, is_real_trans=true) at /data/src/11.2/sql/handler.cc:2131
|
#19 0x00005583e3efbdd7 in ha_commit_one_phase (thd=0x62c000240218, all=true) at /data/src/11.2/sql/handler.cc:2093
|
#20 0x00005583e3efa048 in ha_commit_trans (thd=0x62c000240218, all=true) at /data/src/11.2/sql/handler.cc:1887
|
#21 0x00005583e3ac52a3 in trans_commit (thd=0x62c000240218) at /data/src/11.2/sql/transaction.cc:266
|
#22 0x00005583e35d1925 in mysql_execute_command (thd=0x62c000240218, is_called_from_prepared_stmt=false) at /data/src/11.2/sql/sql_parse.cc:5403
|
#23 0x00005583e35e10d7 in mysql_parse (thd=0x62c000240218, rawbuf=0x6290002e9238 "COMMIT", length=6, parser_state=0x7f18a324b9f0) at /data/src/11.2/sql/sql_parse.cc:7811
|
#24 0x00005583e35b9491 in dispatch_command (command=COM_QUERY, thd=0x62c000240218, packet=0x6290002df219 "COMMIT", packet_length=6, blocking=true) at /data/src/11.2/sql/sql_parse.cc:1893
|
#25 0x00005583e35b61ce in do_command (thd=0x62c000240218, blocking=true) at /data/src/11.2/sql/sql_parse.cc:1406
|
#26 0x00005583e3a81fac in do_handle_one_connection (connect=0x608000003cb8, put_in_cache=true) at /data/src/11.2/sql/sql_connect.cc:1445
|
#27 0x00005583e3a8196d in handle_one_connection (arg=0x608000003cb8) at /data/src/11.2/sql/sql_connect.cc:1347
|
#28 0x00005583e46aa652 in pfs_spawn_thread (arg=0x617000008c98) at /data/src/11.2/storage/perfschema/pfs.cc:2201
|
#29 0x00007f18bb4a7fd4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
|
#30 0x00007f18bb5285bc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
|
- is caused by
-
MDEV-16329
Engine-independent online ALTER TABLE
-
-
Closed
{"report":{"fcp":1004.7999999523163,"ttfb":234.79999995231628,"pageVisibility":"visible","entityId":124915,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"a0484024-0264-4eb0-8b99-40d48c0595f3","navigationType":0,"readyForUser":1111.2000000476837,"redirectCount":0,"resourceLoadedEnd":779.7999999523163,"resourceLoadedStart":240.20000004768372,"resourceTiming":[{"duration":228.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":240.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":240.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":468.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":228.60000014305115,"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":240.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":240.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":469.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":237.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":240.70000004768372,"connectEnd":240.70000004768372,"connectStart":240.70000004768372,"domainLookupEnd":240.70000004768372,"domainLookupStart":240.70000004768372,"fetchStart":240.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":240.70000004768372,"responseEnd":478.2999999523163,"responseStart":478.2999999523163,"secureConnectionStart":240.70000004768372},{"duration":285.2999999523163,"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":240.90000009536743,"connectEnd":240.90000009536743,"connectStart":240.90000009536743,"domainLookupEnd":240.90000009536743,"domainLookupStart":240.90000009536743,"fetchStart":240.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":240.90000009536743,"responseEnd":526.2000000476837,"responseStart":526.2000000476837,"secureConnectionStart":240.90000009536743},{"duration":289.40000009536743,"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":241,"connectEnd":241,"connectStart":241,"domainLookupEnd":241,"domainLookupStart":241,"fetchStart":241,"redirectEnd":0,"redirectStart":0,"requestStart":241,"responseEnd":530.4000000953674,"responseStart":530.4000000953674,"secureConnectionStart":241},{"duration":290.2999999523163,"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":241.20000004768372,"connectEnd":241.20000004768372,"connectStart":241.20000004768372,"domainLookupEnd":241.20000004768372,"domainLookupStart":241.20000004768372,"fetchStart":241.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":241.20000004768372,"responseEnd":531.5,"responseStart":531.5,"secureConnectionStart":241.20000004768372},{"duration":291.2000000476837,"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":241.5,"connectEnd":241.5,"connectStart":241.5,"domainLookupEnd":241.5,"domainLookupStart":241.5,"fetchStart":241.5,"redirectEnd":0,"redirectStart":0,"requestStart":241.5,"responseEnd":532.7000000476837,"responseStart":532.7000000476837,"secureConnectionStart":241.5},{"duration":383.40000009536743,"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":241.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":241.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":625,"responseStart":0,"secureConnectionStart":0},{"duration":292.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":241.79999995231628,"connectEnd":241.79999995231628,"connectStart":241.79999995231628,"domainLookupEnd":241.79999995231628,"domainLookupStart":241.79999995231628,"fetchStart":241.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":241.79999995231628,"responseEnd":534.2000000476837,"responseStart":534.2000000476837,"secureConnectionStart":241.79999995231628},{"duration":383.2999999523163,"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":241.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":241.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":625.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":293,"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":242.09999990463257,"connectEnd":242.09999990463257,"connectStart":242.09999990463257,"domainLookupEnd":242.09999990463257,"domainLookupStart":242.09999990463257,"fetchStart":242.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":242.09999990463257,"responseEnd":535.0999999046326,"responseStart":535.0999999046326,"secureConnectionStart":242.09999990463257},{"duration":392.7000000476837,"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":248,"connectEnd":248,"connectStart":248,"domainLookupEnd":248,"domainLookupStart":248,"fetchStart":248,"redirectEnd":0,"redirectStart":0,"requestStart":248,"responseEnd":640.7000000476837,"responseStart":640.7000000476837,"secureConnectionStart":248},{"duration":531.3999998569489,"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":248.40000009536743,"connectEnd":248.40000009536743,"connectStart":248.40000009536743,"domainLookupEnd":248.40000009536743,"domainLookupStart":248.40000009536743,"fetchStart":248.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":248.40000009536743,"responseEnd":779.7999999523163,"responseStart":779.7999999523163,"secureConnectionStart":248.40000009536743},{"duration":120,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":660.2999999523163,"connectEnd":660.2999999523163,"connectStart":660.2999999523163,"domainLookupEnd":660.2999999523163,"domainLookupStart":660.2999999523163,"fetchStart":660.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":660.2999999523163,"responseEnd":780.2999999523163,"responseStart":780.2999999523163,"secureConnectionStart":660.2999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":52,"responseStart":235,"responseEnd":247,"domLoading":238,"domInteractive":1240,"domContentLoadedEventStart":1240,"domContentLoadedEventEnd":1306,"domComplete":2551,"loadEventStart":2552,"loadEventEnd":2552,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1165.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1166.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1166.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1170},{"name":"activityTabFullyLoaded","time":1323.5}],"measures":[],"correlationId":"8430c7c90463c6","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":109,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The smaller test, leading to the same problem, however a different assertion, has been found:
--source include/have_binlog_format_mixed.inc
--source include/have_innodb.inc
--source include/have_debug_sync.inc
--connection default
--connect (con1,localhost,root,,test)
--error ER_DUP_ENTRY