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":1599,"ttfb":239.2999997138977,"pageVisibility":"visible","entityId":124915,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"f6431784-dc94-4d0a-bab9-717f09ff82ce","navigationType":0,"readyForUser":1745.8999996185303,"redirectCount":0,"resourceLoadedEnd":1265.0999999046326,"resourceLoadedStart":247.39999961853027,"resourceTiming":[{"duration":72.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":247.39999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":247.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":319.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":72.40000009536743,"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":247.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":247.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":320.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":662,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":247.7999997138977,"connectEnd":247.7999997138977,"connectStart":247.7999997138977,"domainLookupEnd":247.7999997138977,"domainLookupStart":247.7999997138977,"fetchStart":247.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":324.2999997138977,"responseEnd":909.7999997138977,"responseStart":363.19999980926514,"secureConnectionStart":247.7999997138977},{"duration":1017.0999999046326,"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":248,"connectEnd":248,"connectStart":248,"domainLookupEnd":248,"domainLookupStart":248,"fetchStart":248,"redirectEnd":0,"redirectStart":0,"requestStart":324.3999996185303,"responseEnd":1265.0999999046326,"responseStart":374.69999980926514,"secureConnectionStart":248},{"duration":137.90000009536743,"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":248.19999980926514,"connectEnd":248.19999980926514,"connectStart":248.19999980926514,"domainLookupEnd":248.19999980926514,"domainLookupStart":248.19999980926514,"fetchStart":248.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":326.09999990463257,"responseEnd":386.09999990463257,"responseStart":381,"secureConnectionStart":248.19999980926514},{"duration":140.2000002861023,"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":248.39999961853027,"connectEnd":248.39999961853027,"connectStart":248.39999961853027,"domainLookupEnd":248.39999961853027,"domainLookupStart":248.39999961853027,"fetchStart":248.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":326.8999996185303,"responseEnd":388.59999990463257,"responseStart":382.7999997138977,"secureConnectionStart":248.39999961853027},{"duration":149.5,"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":248.59999990463257,"connectEnd":248.59999990463257,"connectStart":248.59999990463257,"domainLookupEnd":248.59999990463257,"domainLookupStart":248.59999990463257,"fetchStart":248.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":330.8999996185303,"responseEnd":398.09999990463257,"responseStart":392,"secureConnectionStart":248.59999990463257},{"duration":76.69999980926514,"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":248.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":248.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":325.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":149.89999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":249,"connectEnd":249,"connectStart":249,"domainLookupEnd":249,"domainLookupStart":249,"fetchStart":249,"redirectEnd":0,"redirectStart":0,"requestStart":334,"responseEnd":398.8999996185303,"responseStart":393.8999996185303,"secureConnectionStart":249},{"duration":78.90000009536743,"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":249.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":249.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":328,"responseStart":0,"secureConnectionStart":0},{"duration":171.5,"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":249.19999980926514,"connectEnd":249.19999980926514,"connectStart":249.19999980926514,"domainLookupEnd":249.19999980926514,"domainLookupStart":249.19999980926514,"fetchStart":249.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":334.2999997138977,"responseEnd":420.69999980926514,"responseStart":399.69999980926514,"secureConnectionStart":249.19999980926514},{"duration":1007.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":250.09999990463257,"connectEnd":250.09999990463257,"connectStart":250.09999990463257,"domainLookupEnd":250.09999990463257,"domainLookupStart":250.09999990463257,"fetchStart":250.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":389.7999997138977,"responseEnd":1257.7999997138977,"responseStart":1223.8999996185303,"secureConnectionStart":250.09999990463257},{"duration":998.5,"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":260.8999996185303,"connectEnd":260.8999996185303,"connectStart":260.8999996185303,"domainLookupEnd":260.8999996185303,"domainLookupStart":260.8999996185303,"fetchStart":260.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":408.59999990463257,"responseEnd":1259.3999996185303,"responseStart":1229.1999998092651,"secureConnectionStart":260.8999996185303},{"duration":505,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1056,"connectEnd":1056,"connectStart":1056,"domainLookupEnd":1056,"domainLookupStart":1056,"fetchStart":1056,"redirectEnd":0,"redirectStart":0,"requestStart":1529.2999997138977,"responseEnd":1561,"responseStart":1560.3999996185303,"secureConnectionStart":1056}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":49,"responseStart":239,"responseEnd":247,"domLoading":244,"domInteractive":1889,"domContentLoadedEventStart":1889,"domContentLoadedEventEnd":1960,"domComplete":2596,"loadEventStart":2596,"loadEventEnd":2596,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1847.5},{"name":"bigPipe.sidebar-id.end","time":1848.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":1848.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1852.1999998092651},{"name":"activityTabFullyLoaded","time":1981}],"measures":[],"correlationId":"155c45ac958077","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":113,"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