Note: It might well be a duplicate of MDEV-18153, the results are exactly the same, but it's a different SQL_MODE (and thus different affected versions), and different table structures, so I'm filing it separately just in case.
CREATE TABLE t1 (c CHAR(8), v BINARY(8) AS (c), KEY(v));
|
INSERT INTO t1 (c) VALUES ('foo') ;
|
|
SET SQL_MODE= 'PAD_CHAR_TO_FULL_LENGTH';
|
DELETE FROM t1 WHERE c <> 'bar';
|
|
# Cleanup
|
DROP TABLE t1;
|
10.2 0c20b247de with MyISAM
|
mysqltest: At line 5: query 'DELETE FROM t1 WHERE c <> 'bar'' failed: 126: Index for table './test/t1.MYI' is corrupt; try to repair it
|
10.2 debug 0c20b247de with InnoDB
|
2019-01-06 22:02:13 140655082366720 [ERROR] InnoDB: Record in index `v` of table `test`.`t1` was not found on update: TUPLE (info_bits=0, 2 fields): {[8]foo (0x666F6F2020202020),[6] (0x000000000200)} at: COMPACT RECORD(info_bits=0, 2 fields): {[8]foo (0x666F6F0000000000),[6] (0x000000000200)}
|
mysqld: /data/src/10.2/storage/innobase/row/row0upd.cc:2436: dberr_t row_upd_sec_index_entry(upd_node_t*, que_thr_t*): Assertion `0' failed.
|
190106 22:02:13 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007fecd7f19ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x000055bf73ba59bb in row_upd_sec_index_entry (node=0x7fec88136de0, thr=0x7fec880848a8) at /data/src/10.2/storage/innobase/row/row0upd.cc:2436
|
#9 0x000055bf73ba6031 in row_upd_sec_step (node=0x7fec88136de0, thr=0x7fec880848a8) at /data/src/10.2/storage/innobase/row/row0upd.cc:2549
|
#10 0x000055bf73ba82b2 in row_upd (node=0x7fec88136de0, thr=0x7fec880848a8) at /data/src/10.2/storage/innobase/row/row0upd.cc:3308
|
#11 0x000055bf73ba8603 in row_upd_step (thr=0x7fec880848a8) at /data/src/10.2/storage/innobase/row/row0upd.cc:3425
|
#12 0x000055bf73b4ec37 in row_update_for_mysql (prebuilt=0x7fec881362d8) at /data/src/10.2/storage/innobase/row/row0mysql.cc:1830
|
#13 0x000055bf73a1536b in ha_innobase::delete_row (this=0x7fec88135498, record=0x7fec880311d0 "\371foo foo ", '\245' <repeats 31 times>, "\030\022\003\210\354\177") at /data/src/10.2/storage/innobase/handler/ha_innodb.cc:9098
|
#14 0x000055bf73709360 in handler::ha_delete_row (this=0x7fec88135498, buf=0x7fec880311d0 "\371foo foo ", '\245' <repeats 31 times>, "\030\022\003\210\354\177") at /data/src/10.2/sql/handler.cc:6021
|
#15 0x000055bf73898cb4 in mysql_delete (thd=0x7fec88000b00, table_list=0x7fec88012530, conds=0x7fec88012ce8, order_list=0x7fec88005078, limit=18446744073709551615, options=0, result=0x0) at /data/src/10.2/sql/sql_delete.cc:583
|
#16 0x000055bf73484616 in mysql_execute_command (thd=0x7fec88000b00) at /data/src/10.2/sql/sql_parse.cc:4636
|
#17 0x000055bf7348ef51 in mysql_parse (thd=0x7fec88000b00, rawbuf=0x7fec88012448 "DELETE FROM t1 WHERE c <> 'bar'", length=31, parser_state=0x7fecd0385200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8015
|
#18 0x000055bf7347c88b in dispatch_command (command=COM_QUERY, thd=0x7fec88000b00, packet=0x7fec88096261 "DELETE FROM t1 WHERE c <> 'bar'", packet_length=31, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1826
|
#19 0x000055bf7347b1e2 in do_command (thd=0x7fec88000b00) at /data/src/10.2/sql/sql_parse.cc:1379
|
#20 0x000055bf735cdccd in do_handle_one_connection (connect=0x55bf772692d0) at /data/src/10.2/sql/sql_connect.cc:1335
|
#21 0x000055bf735cda5a in handle_one_connection (arg=0x55bf772692d0) at /data/src/10.2/sql/sql_connect.cc:1241
|
#22 0x000055bf739f397c in pfs_spawn_thread (arg=0x55bf771af6d0) at /data/src/10.2/storage/perfschema/pfs.cc:1862
|
#23 0x00007fecd9bf0494 in start_thread (arg=0x7fecd0386700) at pthread_create.c:333
|
#24 0x00007fecd7fd693f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
10.2 non-debug 0c20b247de with InnoDB
|
2019-01-06 22:03:36 140321956206336 [ERROR] InnoDB: Record in index `v` of table `test`.`t1` was not found on update: TUPLE (info_bits=0, 2 fields): {[8]foo (0x666F6F2020202020),[6] (0x000000000200)} at: COMPACT RECORD(info_bits=0, 2 fields): {[8]foo (0x666F6F0000000000),[6] (0x000000000200)}
|
{"report":{"fcp":1038.9000000953674,"ttfb":339.90000009536743,"pageVisibility":"visible","entityId":71692,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"89628605-f240-466d-9959-cce6b3ffb7ac","navigationType":0,"readyForUser":1142.2000002861023,"redirectCount":0,"resourceLoadedEnd":753.3000001907349,"resourceLoadedStart":346.2000002861023,"resourceTiming":[{"duration":18.199999809265137,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":346.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":346.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":364.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":31.399999618530273,"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.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":346.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":378,"responseStart":0,"secureConnectionStart":0},{"duration":280,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":346.7000002861023,"connectEnd":346.7000002861023,"connectStart":346.7000002861023,"domainLookupEnd":346.7000002861023,"domainLookupStart":346.7000002861023,"fetchStart":346.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":381.80000019073486,"responseEnd":626.7000002861023,"responseStart":400,"secureConnectionStart":346.7000002861023},{"duration":406.40000009536743,"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.90000009536743,"connectEnd":346.90000009536743,"connectStart":346.90000009536743,"domainLookupEnd":346.90000009536743,"domainLookupStart":346.90000009536743,"fetchStart":346.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":382,"responseEnd":753.3000001907349,"responseStart":401.30000019073486,"secureConnectionStart":346.90000009536743},{"duration":56.10000038146973,"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,"connectEnd":347,"connectStart":347,"domainLookupEnd":347,"domainLookupStart":347,"fetchStart":347,"redirectEnd":0,"redirectStart":0,"requestStart":382.2000002861023,"responseEnd":403.1000003814697,"responseStart":400.6000003814697,"secureConnectionStart":347},{"duration":64.19999980926514,"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.30000019073486,"connectEnd":347.30000019073486,"connectStart":347.30000019073486,"domainLookupEnd":347.30000019073486,"domainLookupStart":347.30000019073486,"fetchStart":347.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":383.1000003814697,"responseEnd":411.5,"responseStart":404.7000002861023,"secureConnectionStart":347.30000019073486},{"duration":64.7000002861023,"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.40000009536743,"connectEnd":347.40000009536743,"connectStart":347.40000009536743,"domainLookupEnd":347.40000009536743,"domainLookupStart":347.40000009536743,"fetchStart":347.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":383.30000019073486,"responseEnd":412.1000003814697,"responseStart":407.2000002861023,"secureConnectionStart":347.40000009536743},{"duration":32,"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.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":347.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":379.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":64.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":347.7000002861023,"connectEnd":347.7000002861023,"connectStart":347.7000002861023,"domainLookupEnd":347.7000002861023,"domainLookupStart":347.7000002861023,"fetchStart":347.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":383.5,"responseEnd":412.2000002861023,"responseStart":407.6000003814697,"secureConnectionStart":347.7000002861023},{"duration":32.40000009536743,"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":347.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":347.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":380.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":64.19999980926514,"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.1000003814697,"connectEnd":348.1000003814697,"connectStart":348.1000003814697,"domainLookupEnd":348.1000003814697,"domainLookupStart":348.1000003814697,"fetchStart":348.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":383.5,"responseEnd":412.30000019073486,"responseStart":408.30000019073486,"secureConnectionStart":348.1000003814697},{"duration":379.69999980926514,"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":355.1000003814697,"connectEnd":355.1000003814697,"connectStart":355.1000003814697,"domainLookupEnd":355.1000003814697,"domainLookupStart":355.1000003814697,"fetchStart":355.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":406.80000019073486,"responseEnd":734.8000001907349,"responseStart":728.1000003814697,"secureConnectionStart":355.1000003814697},{"duration":381.59999990463257,"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":355.1000003814697,"connectEnd":355.1000003814697,"connectStart":355.1000003814697,"domainLookupEnd":355.1000003814697,"domainLookupStart":355.1000003814697,"fetchStart":355.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":423.7000002861023,"responseEnd":736.7000002861023,"responseStart":731.7000002861023,"secureConnectionStart":355.1000003814697},{"duration":181.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":779.8000001907349,"connectEnd":779.8000001907349,"connectStart":779.8000001907349,"domainLookupEnd":779.8000001907349,"domainLookupStart":779.8000001907349,"fetchStart":779.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":924,"responseEnd":961.5,"responseStart":960.2000002861023,"secureConnectionStart":779.8000001907349},{"duration":237.2999997138977,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":989.7000002861023,"connectEnd":989.7000002861023,"connectStart":989.7000002861023,"domainLookupEnd":989.7000002861023,"domainLookupStart":989.7000002861023,"fetchStart":989.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1189.4000000953674,"responseEnd":1227,"responseStart":1226.2000002861023,"secureConnectionStart":989.7000002861023},{"duration":221.2000002861023,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1031,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1031,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1252.2000002861023,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":87,"responseStart":340,"responseEnd":348,"domLoading":344,"domInteractive":1260,"domContentLoadedEventStart":1260,"domContentLoadedEventEnd":1320,"domComplete":1593,"loadEventStart":1593,"loadEventEnd":1594,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1228.7000002861023},{"name":"bigPipe.sidebar-id.end","time":1229.6000003814697},{"name":"bigPipe.activity-panel-pipe-id.start","time":1229.7000002861023},{"name":"bigPipe.activity-panel-pipe-id.end","time":1231.5},{"name":"activityTabFullyLoaded","time":1338.8000001907349}],"measures":[],"correlationId":"99415363ca047b","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":166,"dbReadsTimeInMs":35,"dbConnsTimeInMs":86,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}