--source include/have_innodb.inc
|
--source include/have_partition.inc
|
|
CREATE TABLE t1 (f1 INT, f2 INT, f3 INT, f4 INT, KEY (f4,f3))
|
ENGINE=InnoDB
|
PARTITION BY RANGE (f1) (
|
PARTITION p1 VALUES LESS THAN (128),
|
PARTITION p2 VALUES LESS THAN MAXVALUE
|
);
|
|
CREATE ALGORITHM = MERGE VIEW v1 AS SELECT a1.f1, a1.f2, a1.f3, a2.f4
|
FROM t1 AS a1, t1 AS a2 WHERE a1.f3 >= a2.f3 WITH CHECK OPTION;
|
|
INSERT INTO t1 VALUES (156,NULL,0,0),(3,8,0,0),(0,3,2,4),(0,5,0,NULL);
|
UPDATE v1 SET f3 = 6, f2 = 9 WHERE f4 <= 0;
|
|
# Cleanup
|
DROP VIEW v1;
|
DROP TABLE t1;
|
10.0 0c4d11e8199f4c7
|
2017-11-17 2:05:00 140640119027456 [Warning] InnoDB: Using a partial-field key prefix in search, index `f4` of table `test`.`t1` /* Partition `p2` */. Last data field length 5 bytes, key ptr now exceeds key end by 4 bytes. Key value in the MySQL format:
|
len 6; hex 000000000200; asc ;
|
mysqld: /data/src/10.2/storage/innobase/row/row0sel.cc:2724: void row_sel_convert_mysql_key_to_innobase(dtuple_t*, byte*, ulint, dict_index_t*, const byte*, ulint, trx_t*): Assertion `0' failed.
|
171117 2:05:00 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007fb7c471aee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x00005645ddae0400 in row_sel_convert_mysql_key_to_innobase (tuple=0x7fb76803a688, buf=0x7fb76803a490 "", buf_len=8, index=0x7fb768131568, key_ptr=0x7fb7680467ed "\t", key_len=6, trx=0x7fb7be68b878) at /data/src/10.2/storage/innobase/row/row0sel.cc:2724
|
#9 0x00005645dd9730e9 in ha_innobase::index_read (this=0x7fb768037198, buf=0x7fb768130c10 "\245\245\245\245\245\245\245\245\245\002", key_ptr=0x7fb7680467e3 "", key_len=6, find_flag=HA_READ_KEY_EXACT) at /data/src/10.2/storage/innobase/handler/ha_innodb.cc:9783
|
#10 0x00005645dd9749c2 in ha_innobase::rnd_pos (this=0x7fb768037198, buf=0x7fb768130c10 "\245\245\245\245\245\245\245\245\245\002", pos=0x7fb7680467e3 "") at /data/src/10.2/storage/innobase/handler/ha_innodb.cc:10392
|
#11 0x00005645dd6608a3 in handler::ha_rnd_pos (this=0x7fb768037198, buf=0x7fb768130c10 "\245\245\245\245\245\245\245\245\245\002", pos=0x7fb7680467e3 "") at /data/src/10.2/sql/handler.cc:2603
|
#12 0x00005645ddd86175 in ha_partition::rnd_pos (this=0x7fb768036248, buf=0x7fb768130c10 "\245\245\245\245\245\245\245\245\245\002", pos=0x7fb7680467e1 "\001") at /data/src/10.2/sql/ha_partition.cc:5071
|
#13 0x00005645dd66084d in handler::ha_rnd_pos (this=0x7fb768036248, buf=0x7fb768130c10 "\245\245\245\245\245\245\245\245\245\002", pos=0x7fb7680467e1 "\001") at /data/src/10.2/sql/handler.cc:2603
|
#14 0x00005645dd4daf76 in multi_update::do_updates (this=0x7fb768017b78) at /data/src/10.2/sql/sql_update.cc:2418
|
#15 0x00005645dd4db6e7 in multi_update::send_eof (this=0x7fb768017b78) at /data/src/10.2/sql/sql_update.cc:2560
|
#16 0x00005645dd459f0e in do_select (join=0x7fb768017c40, procedure=0x0) at /data/src/10.2/sql/sql_select.cc:18236
|
#17 0x00005645dd4343e3 in JOIN::exec_inner (this=0x7fb768017c40) at /data/src/10.2/sql/sql_select.cc:3514
|
#18 0x00005645dd433892 in JOIN::exec (this=0x7fb768017c40) at /data/src/10.2/sql/sql_select.cc:3309
|
#19 0x00005645dd434a5b in mysql_select (thd=0x7fb768000b00, tables=0x7fb768012550, wild_num=0, fields=..., conds=0x7fb768013080, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=1342177408, result=0x7fb768017b78, unit=0x7fb7680046a0, select_lex=0x7fb768004dd8) at /data/src/10.2/sql/sql_select.cc:3709
|
#20 0x00005645dd4d8296 in mysql_multi_update (thd=0x7fb768000b00, table_list=0x7fb768012550, fields=0x7fb768004f00, values=0x7fb7680053c8, conds=0x7fb768013080, options=0, handle_duplicates=DUP_ERROR, ignore=false, unit=0x7fb7680046a0, select_lex=0x7fb768004dd8, result=0x7fb7bc384910) at /data/src/10.2/sql/sql_update.cc:1604
|
#21 0x00005645dd3ed841 in mysql_execute_command (thd=0x7fb768000b00) at /data/src/10.2/sql/sql_parse.cc:4336
|
#22 0x00005645dd3f8abe in mysql_parse (thd=0x7fb768000b00, rawbuf=0x7fb768012448 "UPDATE v1 SET f3 = 6, f2 = 9 WHERE f4 <= 0", length=42, parser_state=0x7fb7bc385200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:7869
|
#23 0x00005645dd3e6a4a in dispatch_command (command=COM_QUERY, thd=0x7fb768000b00, packet=0x7fb7680088a1 "UPDATE v1 SET f3 = 6, f2 = 9 WHERE f4 <= 0", packet_length=42, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1805
|
#24 0x00005645dd3e53a8 in do_command (thd=0x7fb768000b00) at /data/src/10.2/sql/sql_parse.cc:1360
|
#25 0x00005645dd53298d in do_handle_one_connection (connect=0x5645e1656250) at /data/src/10.2/sql/sql_connect.cc:1354
|
#26 0x00005645dd53271a in handle_one_connection (arg=0x5645e1656250) at /data/src/10.2/sql/sql_connect.cc:1260
|
#27 0x00005645dd94fe1a in pfs_spawn_thread (arg=0x5645e16607c0) at /data/src/10.2/storage/perfschema/pfs.cc:1863
|
#28 0x00007fb7c63f1494 in start_thread (arg=0x7fb7bc386700) at pthread_create.c:333
|
#29 0x00007fb7c47d793f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
- duplicates
-
MDEV-11167
InnoDB: Warning: using a partial-field key prefix in search, results in assertion failure or "Can't find record" error
-
-
Closed
{"report":{"fcp":992.1999998092651,"ttfb":146.69999980926514,"pageVisibility":"visible","entityId":64317,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"735d87b8-4df5-4500-9f02-401b6fc29502","navigationType":0,"readyForUser":1056.3999998569489,"redirectCount":0,"resourceLoadedEnd":1128.0999999046326,"resourceLoadedStart":152.79999995231628,"resourceTiming":[{"duration":386.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":152.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":152.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":539.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":386.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":153.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":153.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":539.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":394.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":153.19999980926514,"connectEnd":153.19999980926514,"connectStart":153.19999980926514,"domainLookupEnd":153.19999980926514,"domainLookupStart":153.19999980926514,"fetchStart":153.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":153.19999980926514,"responseEnd":548.0999999046326,"responseStart":548.0999999046326,"secureConnectionStart":153.19999980926514},{"duration":466.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":153.29999995231628,"connectEnd":153.29999995231628,"connectStart":153.29999995231628,"domainLookupEnd":153.29999995231628,"domainLookupStart":153.29999995231628,"fetchStart":153.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":153.29999995231628,"responseEnd":619.6999998092651,"responseStart":619.6999998092651,"secureConnectionStart":153.29999995231628},{"duration":469.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":153.39999985694885,"connectEnd":153.39999985694885,"connectStart":153.39999985694885,"domainLookupEnd":153.39999985694885,"domainLookupStart":153.39999985694885,"fetchStart":153.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":153.39999985694885,"responseEnd":623.1999998092651,"responseStart":623.1999998092651,"secureConnectionStart":153.39999985694885},{"duration":470.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":153.5,"connectEnd":153.5,"connectStart":153.5,"domainLookupEnd":153.5,"domainLookupStart":153.5,"fetchStart":153.5,"redirectEnd":0,"redirectStart":0,"requestStart":153.5,"responseEnd":624,"responseStart":624,"secureConnectionStart":153.5},{"duration":470.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":153.59999990463257,"connectEnd":153.59999990463257,"connectStart":153.59999990463257,"domainLookupEnd":153.59999990463257,"domainLookupStart":153.59999990463257,"fetchStart":153.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":153.59999990463257,"responseEnd":624.3999998569489,"responseStart":624.3999998569489,"secureConnectionStart":153.59999990463257},{"duration":471,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":153.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":153.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":624.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":470.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":153.89999985694885,"connectEnd":153.89999985694885,"connectStart":153.89999985694885,"domainLookupEnd":153.89999985694885,"domainLookupStart":153.89999985694885,"fetchStart":153.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":153.89999985694885,"responseEnd":624.6999998092651,"responseStart":624.6999998092651,"secureConnectionStart":153.89999985694885},{"duration":471.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":154,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":154,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":625.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":471.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":154,"connectEnd":154,"connectStart":154,"domainLookupEnd":154,"domainLookupStart":154,"fetchStart":154,"redirectEnd":0,"redirectStart":0,"requestStart":154,"responseEnd":625.2999999523163,"responseStart":625.2999999523163,"secureConnectionStart":154},{"duration":971.8999998569489,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":154.79999995231628,"connectEnd":154.79999995231628,"connectStart":154.79999995231628,"domainLookupEnd":154.79999995231628,"domainLookupStart":154.79999995231628,"fetchStart":154.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":154.79999995231628,"responseEnd":1126.6999998092651,"responseStart":1126.6999998092651,"secureConnectionStart":154.79999995231628},{"duration":973.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":154.79999995231628,"connectEnd":154.79999995231628,"connectStart":154.79999995231628,"domainLookupEnd":154.79999995231628,"domainLookupStart":154.79999995231628,"fetchStart":154.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":154.79999995231628,"responseEnd":1128.0999999046326,"responseStart":1128.0999999046326,"secureConnectionStart":154.79999995231628},{"duration":324.2999999523163,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":757.7999999523163,"connectEnd":757.7999999523163,"connectStart":757.7999999523163,"domainLookupEnd":757.7999999523163,"domainLookupStart":757.7999999523163,"fetchStart":757.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":757.7999999523163,"responseEnd":1082.0999999046326,"responseStart":1082.0999999046326,"secureConnectionStart":757.7999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":20,"responseStart":147,"responseEnd":148,"domLoading":150,"domInteractive":1142,"domContentLoadedEventStart":1142,"domContentLoadedEventEnd":1175,"domComplete":1931,"loadEventStart":1931,"loadEventEnd":1933,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1132.1999998092651},{"name":"bigPipe.sidebar-id.end","time":1132.8999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":1133},{"name":"bigPipe.activity-panel-pipe-id.end","time":1135.1999998092651},{"name":"activityTabFullyLoaded","time":1185.1999998092651}],"measures":[],"correlationId":"6a3ce2b06916d3","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":68,"dbReadsTimeInMs":10,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}