--source include/galera_cluster.inc
--source include/have_partition.inc
SET SESSION wsrep_osu_method=RSU;
SET autocommit=0;
CREATE TABLE t (c INT ) PARTITION BY KEY (c) PARTITIONS 2;
INSERT INTO t VALUES (1);
INSERT INTO t SELECT 1 ;
Leads to
10.6.18 a8a75ba2d0dd639b2b14337a6c4f495fcaaff7e4 (Debug)
mysqld: /test/10.6_dbg/sql/sql_class.cc:7225: int THD::binlog_write_row(TABLE*, bool, const uchar*): Assertion `((WSREP_PROVIDER_EXISTS_ && this->variables.wsrep_on) && wsrep_emulate_bin_log) || mysql_bin_log.is_open()' failed.
10.6.18 a8a75ba2d0dd639b2b14337a6c4f495fcaaff7e4 (Debug)
Core was generated by `/test/GAL_MD170424-mariadb-10.6.18-linux-x86_64-dbg/bin/mysqld --defaults-file='.
Program terminated with signal SIGABRT, Aborted.
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
[Current thread is 1 (Thread 0x14633c476700 (LWP 748606))]
(gdb) bt
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
#1 0x0000558510061e65 in my_write_core (sig=sig@entry=6) at /test/10.6_dbg/mysys/stacktrace.c:424
#2 0x000055850f902b26 in handle_fatal_signal (sig=6) at /test/10.6_dbg/sql/signal_handler.cc:357
#3 <signal handler called>
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#5 0x00001463762d2859 in __GI_abort () at abort.c:79
#6 0x00001463762d2729 in __assert_fail_base (fmt=0x146376468588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x558510253f30 "((WSREP_PROVIDER_EXISTS_ && this->variables.wsrep_on) && wsrep_emulate_bin_log) || mysql_bin_log.is_open()", file=0x558510252808 "/test/10.6_dbg/sql/sql_class.cc", line=7225, function=<optimized out>) at assert.c:92
#7 0x00001463762e3fd6 in __GI___assert_fail (assertion=assertion@entry=0x558510253f30 "((WSREP_PROVIDER_EXISTS_ && this->variables.wsrep_on) && wsrep_emulate_bin_log) || mysql_bin_log.is_open()", file=file@entry=0x558510252808 "/test/10.6_dbg/sql/sql_class.cc", line=line@entry=7225, function=function@entry=0x5585102540b8 "int THD::binlog_write_row(TABLE*, bool, const uchar*)") at assert.c:101
#8 0x000055850f5e47f5 in THD::binlog_write_row (this=this@entry=0x146304000d48, table=table@entry=0x1463040317f8, is_trans=is_trans@entry=true, record=record@entry=0x146304022030 "\375\001") at /test/10.6_dbg/sql/log.h:323
#9 0x000055850f91a3de in Write_rows_log_event::binlog_row_logging_function (thd=0x146304000d48, table=0x1463040317f8, is_transactional=<optimized out>, before_record=<optimized out>, after_record=0x146304022030 "\375\001") at /test/10.6_dbg/sql/log_event.h:5390
#10 0x000055850f91459b in handler::binlog_log_row (this=this@entry=0x146304032930, table=0x1463040317f8, before_record=before_record@entry=0x0, after_record=after_record@entry=0x146304022030 "\375\001", log_func=log_func@entry=0x55850f91a3a7 <Write_rows_log_event::binlog_row_logging_function(THD*, TABLE*, bool, unsigned char const*, unsigned char const*)>) at /test/10.6_dbg/sql/handler.cc:7152
#11 0x000055850f916342 in handler::ha_write_row (this=0x146304032930, buf=0x146304022030 "\375\001") at /test/10.6_dbg/sql/handler.cc:7731
#12 0x000055850f5f8831 in write_record (thd=0x146304000d48, table=0x1463040317f8, info=info@entry=0x146304014768, sink=0x0) at /test/10.6_dbg/sql/sql_insert.cc:2187
#13 0x000055850f5f8b7f in select_insert::send_data (this=0x146304014718, values=<optimized out>) at /test/10.6_dbg/sql/sql_insert.cc:4159
#14 0x000055850f6b9b5d in select_result_sink::send_data_with_check (sent=0, u=<optimized out>, items=<optimized out>, this=<optimized out>) at /test/10.6_dbg/sql/sql_class.h:5888
#15 JOIN::exec_inner (this=this@entry=0x1463040147d8) at /test/10.6_dbg/sql/sql_select.cc:4750
#16 0x000055850f6baa59 in JOIN::exec (this=this@entry=0x1463040147d8) at /test/10.6_dbg/sql/sql_select.cc:4662
#17 0x000055850f6b8aaa in mysql_select (thd=thd@entry=0x146304000d48, tables=0x0, fields=@0x146304013bf8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x146304013e88, last = 0x146304013e88, elements = 1}, <No data fields>}, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2202245270016, result=0x146304014718, unit=0x146304004f18, select_lex=0x146304013940) at /test/10.6_dbg/sql/sql_select.cc:5141
#18 0x000055850f6b921b in handle_select (thd=thd@entry=0x146304000d48, lex=lex@entry=0x146304004e50, result=result@entry=0x146304014718, setup_tables_done_option=setup_tables_done_option@entry=1073741824) at /test/10.6_dbg/sql/sql_select.cc:559
#19 0x000055850f643e8e in mysql_execute_command (thd=thd@entry=0x146304000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.6_dbg/sql/sql_parse.cc:4776
#20 0x000055850f62f948 in mysql_parse (thd=thd@entry=0x146304000d48, rawbuf=rawbuf@entry=0x146304013160 "INSERT INTO t SELECT 1", length=length@entry=22, parser_state=parser_state@entry=0x14633c4752d0) at /test/10.6_dbg/sql/sql_parse.cc:8139
#21 0x000055850f62f24e in wsrep_mysql_parse (thd=thd@entry=0x146304000d48, rawbuf=0x146304013160 "INSERT INTO t SELECT 1", length=22, parser_state=parser_state@entry=0x14633c4752d0) at /test/10.6_dbg/sql/sql_parse.cc:7950
#22 0x000055850f63d2a9 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x146304000d48, packet=packet@entry=0x14630400adb9 "INSERT INTO t SELECT 1", packet_length=packet_length@entry=22, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1417
#23 0x000055850f63f903 in do_command (thd=0x146304000d48, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1409
#24 0x000055850f78fce6 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5585123dc5f8, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1415
#25 0x000055850f7901b8 in handle_one_connection (arg=0x5585123dc5f8) at /test/10.6_dbg/sql/sql_connect.cc:1317
#26 0x00001463767e3609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#27 0x00001463763cf133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Bug confirmed present in:
MariaDB: 10.5.25 (dbg), 10.6.18 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.4.34 (dbg), 10.4.34 (opt), 10.5.25 (opt), 10.6.18 (opt), 10.11.8 (dbg), 10.11.8 (opt), 11.0.6 (dbg), 11.0.6 (opt), 11.1.5 (dbg), 11.1.5 (opt), 11.2.4 (dbg), 11.2.4 (opt), 11.3.3 (dbg), 11.3.3 (opt), 11.4.2 (dbg), 11.4.2 (opt), 11.5.0 (dbg), 11.5.0 (opt)
Jan Lindström
made changes -
2024-04-25 11:19
Field
Original Value
New Value
Assignee
Julius Goryavsky
[ sysprg
]
Jan Lindström
[ JIRAUSER53125
]
Julius Goryavsky
made changes -
2024-04-25 14:21
Status
Open
[ 1
]
Confirmed
[ 10101
]
Julius Goryavsky
made changes -
2024-04-25 14:27
Priority
Major
[ 3
]
Critical
[ 2
]
Jan Lindström
made changes -
2024-04-26 04:40
Status
Confirmed
[ 10101
]
In Progress
[ 3
]
Jan Lindström
made changes -
2024-04-30 05:09
Assignee
Jan Lindström
[ JIRAUSER53125
]
Julius Goryavsky
[ sysprg
]
Status
In Progress
[ 3
]
In Review
[ 10002
]
Julius Goryavsky
made changes -
2024-09-01 13:42
Status
In Review
[ 10002
]
Stalled
[ 10000
]
Julius Goryavsky
made changes -
2024-09-01 13:42
Status
Stalled
[ 10000
]
In Progress
[ 3
]
Julius Goryavsky
made changes -
2024-09-01 13:42
Fix Version/s
10.5.27
[ 29902
]
Fix Version/s
10.5
[ 23123
]
Fix Version/s
10.6
[ 24028
]
Resolution
Fixed
[ 1
]
Status
In Progress
[ 3
]
Closed
[ 6
]
JiraAutomate
made changes -
2024-09-01 13:42
Fix Version/s
10.6.20
[ 29903
]
Fix Version/s
10.11.10
[ 29904
]
Fix Version/s
11.2.6
[ 29906
]
Fix Version/s
11.4.4
[ 29907
]
{"report":{"fcp":2495,"ttfb":372.7999997138977,"pageVisibility":"visible","entityId":128914,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"7062ffc8-1180-4f8c-a9f3-a954a68af7e4","navigationType":0,"readyForUser":2609.199999809265,"redirectCount":0,"resourceLoadedEnd":3835.7999997138977,"resourceLoadedStart":385.5,"resourceTiming":[{"duration":1574.6999998092651,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":385.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":385.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1960.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":1574.8000001907349,"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":385.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":385.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1960.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":1583.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":385.8999996185303,"connectEnd":385.8999996185303,"connectStart":385.8999996185303,"domainLookupEnd":385.8999996185303,"domainLookupStart":385.8999996185303,"fetchStart":385.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":385.8999996185303,"responseEnd":1969.1999998092651,"responseStart":1969.1999998092651,"secureConnectionStart":385.8999996185303},{"duration":1628.6999998092651,"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":386.09999990463257,"connectEnd":386.09999990463257,"connectStart":386.09999990463257,"domainLookupEnd":386.09999990463257,"domainLookupStart":386.09999990463257,"fetchStart":386.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":386.09999990463257,"responseEnd":2014.7999997138977,"responseStart":2014.7999997138977,"secureConnectionStart":386.09999990463257},{"duration":1632.3000001907349,"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":386.3999996185303,"connectEnd":386.3999996185303,"connectStart":386.3999996185303,"domainLookupEnd":386.3999996185303,"domainLookupStart":386.3999996185303,"fetchStart":386.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":386.3999996185303,"responseEnd":2018.6999998092651,"responseStart":2018.6999998092651,"secureConnectionStart":386.3999996185303},{"duration":1632.6999998092651,"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":386.5,"connectEnd":386.5,"connectStart":386.5,"domainLookupEnd":386.5,"domainLookupStart":386.5,"fetchStart":386.5,"redirectEnd":0,"redirectStart":0,"requestStart":386.5,"responseEnd":2019.1999998092651,"responseStart":2019.1999998092651,"secureConnectionStart":386.5},{"duration":1632.8000001907349,"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":386.69999980926514,"connectEnd":386.69999980926514,"connectStart":386.69999980926514,"domainLookupEnd":386.69999980926514,"domainLookupStart":386.69999980926514,"fetchStart":386.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":386.69999980926514,"responseEnd":2019.5,"responseStart":2019.5,"secureConnectionStart":386.69999980926514},{"duration":1646.8000001907349,"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":386.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":386.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2033.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":1632.7999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":387.09999990463257,"connectEnd":387.09999990463257,"connectStart":387.09999990463257,"domainLookupEnd":387.09999990463257,"domainLookupStart":387.09999990463257,"fetchStart":387.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":387.09999990463257,"responseEnd":2019.8999996185303,"responseStart":2019.8999996185303,"secureConnectionStart":387.09999990463257},{"duration":1646.6999998092651,"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":387.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":387.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2033.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":1633.1000003814697,"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":387.3999996185303,"connectEnd":387.3999996185303,"connectStart":387.3999996185303,"domainLookupEnd":387.3999996185303,"domainLookupStart":387.3999996185303,"fetchStart":387.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":387.3999996185303,"responseEnd":2020.5,"responseStart":2020.5,"secureConnectionStart":387.3999996185303},{"duration":1845.5,"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":388.19999980926514,"connectEnd":388.19999980926514,"connectStart":388.19999980926514,"domainLookupEnd":388.19999980926514,"domainLookupStart":388.19999980926514,"fetchStart":388.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":388.19999980926514,"responseEnd":2233.699999809265,"responseStart":2233.699999809265,"secureConnectionStart":388.19999980926514},{"duration":3441.5999999046326,"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":394.19999980926514,"connectEnd":394.19999980926514,"connectStart":394.19999980926514,"domainLookupEnd":394.19999980926514,"domainLookupStart":394.19999980926514,"fetchStart":394.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":394.19999980926514,"responseEnd":3835.7999997138977,"responseStart":3835.7999997138977,"secureConnectionStart":394.19999980926514},{"duration":1589.6999998092651,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":2245.5,"connectEnd":2245.5,"connectStart":2245.5,"domainLookupEnd":2245.5,"domainLookupStart":2245.5,"fetchStart":2245.5,"redirectEnd":0,"redirectStart":0,"requestStart":2245.5,"responseEnd":3835.199999809265,"responseStart":3835.199999809265,"secureConnectionStart":2245.5},{"duration":1380,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":2463.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":2463.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":3843.7999997138977,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":178,"responseStart":373,"responseEnd":387,"domLoading":383,"domInteractive":3916,"domContentLoadedEventStart":3916,"domContentLoadedEventEnd":3957,"domComplete":4975,"loadEventStart":4975,"loadEventEnd":4975,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":3844.5999999046326},{"name":"bigPipe.sidebar-id.end","time":3845.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":3845.699999809265},{"name":"bigPipe.activity-panel-pipe-id.end","time":3848.8999996185303},{"name":"activityTabFullyLoaded","time":3977.0999999046326}],"measures":[],"correlationId":"5e179552f59194","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":127,"dbReadsTimeInMs":25,"dbConnsTimeInMs":35,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}