Note: The failure became possible after MDEV-371 , without it the key without a length in the table definition is rejected.
CREATE TABLE t1 (
pk INT ,
b BLOB,
c CHAR (255),
PRIMARY KEY (pk),
KEY (b)
) ENGINE=MyISAM;
INSERT INTO t1 VALUES (1, 'foo' , '' );
REPLACE INTO t1 (pk,c) VALUES (1, 'bar' );
ALTER TABLE t1 ADD KEY (c);
REPLACE INTO t1 (pk,c) VALUES (1, 'qux' );
# Cleanup
DROP TABLE t1;
10.4 fb01193c
mysqld: /data/src/10.4/storage/myisam/mi_open.c:67: test_if_reopen: Assertion `strcmp(share->unique_file_name,filename) || share->last_version' failed.
190224 15:27:22 [ERROR] mysqld got signal 6 ;
#7 0x00007f12f8efdee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#8 0x00005586bccab5ad in test_if_reopen (filename=0x7f12ef0554b0 "/dev/shm/var_auto_9G3Z/mysqld.1/data/test/t1.MYI") at /data/src/10.4/storage/myisam/mi_open.c:66
#9 0x00005586bccab7c6 in mi_open (name=0x7f12d81396f8 "./test/t1", mode=2, open_flags=82) at /data/src/10.4/storage/myisam/mi_open.c:122
#10 0x00005586bcc7e149 in ha_myisam::open (this=0x7f12d8009428, name=0x7f12d81396f8 "./test/t1", mode=2, test_if_locked=18) at /data/src/10.4/storage/myisam/ha_myisam.cc:806
#11 0x00005586bc57b205 in handler::ha_open (this=0x7f12d8009428, table_arg=0x7f12d8149e00, name=0x7f12d81396f8 "./test/t1", mode=2, test_if_locked=18, mem_root=0x0, partitions_to_open=0x0) at /data/src/10.4/sql/handler.cc:2901
#12 0x00005586bc3554fe in open_table_from_share (thd=0x7f12d8000b00, share=0x7f12d8139168, alias=0x7f12d80155e8, db_stat=33, prgflag=8, ha_open_flags=18, outparam=0x7f12d8149e00, is_create_table=false, partitions_to_open=0x0) at /data/src/10.4/sql/table.cc:3895
#13 0x00005586bc194ad5 in open_table (thd=0x7f12d8000b00, table_list=0x7f12d80155a0, ot_ctx=0x7f12ef0571c0) at /data/src/10.4/sql/sql_base.cc:2035
#14 0x00005586bc197dbc in open_and_process_table (thd=0x7f12d8000b00, lex=0x7f12d8004950, tables=0x7f12d80155a0, counter=0x7f12ef057254, flags=0, prelocking_strategy=0x7f12ef0572d0, has_prelocking_list=false, ot_ctx=0x7f12ef0571c0) at /data/src/10.4/sql/sql_base.cc:3728
#15 0x00005586bc199219 in open_tables (thd=0x7f12d8000b00, options=..., start=0x7f12ef057238, counter=0x7f12ef057254, flags=0, prelocking_strategy=0x7f12ef0572d0) at /data/src/10.4/sql/sql_base.cc:4261
#16 0x00005586bc19b069 in open_and_lock_tables (thd=0x7f12d8000b00, options=..., tables=0x7f12d80155a0, derived=true, flags=0, prelocking_strategy=0x7f12ef0572d0) at /data/src/10.4/sql/sql_base.cc:5143
#17 0x00005586bc157b24 in open_and_lock_tables (thd=0x7f12d8000b00, tables=0x7f12d80155a0, derived=true, flags=0) at /data/src/10.4/sql/sql_base.h:509
#18 0x00005586bc1ea221 in mysql_insert (thd=0x7f12d8000b00, table_list=0x7f12d80155a0, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_REPLACE, ignore=false) at /data/src/10.4/sql/sql_insert.cc:764
#19 0x00005586bc235ef4 in mysql_execute_command (thd=0x7f12d8000b00) at /data/src/10.4/sql/sql_parse.cc:4791
#20 0x00005586bc241c72 in mysql_parse (thd=0x7f12d8000b00, rawbuf=0x7f12d80154a8 "REPLACE INTO t1 (pk,c) VALUES (1,'qux')", length=39, parser_state=0x7f12ef058180, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8157
#21 0x00005586bc22d360 in dispatch_command (command=COM_QUERY, thd=0x7f12d8000b00, packet=0x7f12d800a761 "REPLACE INTO t1 (pk,c) VALUES (1,'qux')", packet_length=39, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1829
#22 0x00005586bc22bb34 in do_command (thd=0x7f12d8000b00) at /data/src/10.4/sql/sql_parse.cc:1358
#23 0x00005586bc3a5837 in do_handle_one_connection (connect=0x5586bf45bc70) at /data/src/10.4/sql/sql_connect.cc:1399
#24 0x00005586bc3a55a8 in handle_one_connection (arg=0x5586bf45bc70) at /data/src/10.4/sql/sql_connect.cc:1302
#25 0x00005586bc89c979 in pfs_spawn_thread (arg=0x5586bf54e2e0) at /data/src/10.4/storage/perfschema/pfs.cc:1862
#26 0x00007f12fabd4494 in start_thread (arg=0x7f12ef059700) at pthread_create.c:333
#27 0x00007f12f8fba93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
is caused by
MDEV-371
Unique indexes for blobs
Closed
Sergei Golubchik
made changes -
2019-02-26 21:46
Status
Open
[ 1
]
In Progress
[ 3
]
Sergei Golubchik
made changes -
2019-02-26 21:46
Assignee
Sachin Setiya
[ sachin.setiya.007
]
Sergei Golubchik
[ serg
]
Sergei Golubchik
made changes -
2019-02-26 21:46
Status
In Progress
[ 3
]
Stalled
[ 10000
]
Sergei Golubchik
made changes -
2019-02-28 14:41
Fix Version/s
10.4.4
[ 23310
]
Fix Version/s
10.4
[ 22408
]
Resolution
Fixed
[ 1
]
Status
Stalled
[ 10000
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:49
Workflow
MariaDB v3
[ 92815
]
MariaDB v4
[ 155784
]
{"report":{"fcp":962.5,"ttfb":260.3999996185303,"pageVisibility":"visible","entityId":72812,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"6fa9e5a1-76fc-4b2c-8ec4-ab2885c02d17","navigationType":0,"readyForUser":1043.8999996185303,"redirectCount":0,"resourceLoadedEnd":803.5,"resourceLoadedStart":266.5,"resourceTiming":[{"duration":210.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":266.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":266.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":476.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":210.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":266.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":266.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":477,"responseStart":0,"secureConnectionStart":0},{"duration":219.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":267,"connectEnd":267,"connectStart":267,"domainLookupEnd":267,"domainLookupStart":267,"fetchStart":267,"redirectEnd":0,"redirectStart":0,"requestStart":267,"responseEnd":486.19999980926514,"responseStart":486.19999980926514,"secureConnectionStart":267},{"duration":277,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":267.0999994277954,"connectEnd":267.0999994277954,"connectStart":267.0999994277954,"domainLookupEnd":267.0999994277954,"domainLookupStart":267.0999994277954,"fetchStart":267.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":267.0999994277954,"responseEnd":544.0999994277954,"responseStart":544.0999994277954,"secureConnectionStart":267.0999994277954},{"duration":280.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":267.5,"connectEnd":267.5,"connectStart":267.5,"domainLookupEnd":267.5,"domainLookupStart":267.5,"fetchStart":267.5,"redirectEnd":0,"redirectStart":0,"requestStart":267.5,"responseEnd":547.8000001907349,"responseStart":547.8000001907349,"secureConnectionStart":267.5},{"duration":280.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":267.69999980926514,"connectEnd":267.69999980926514,"connectStart":267.69999980926514,"domainLookupEnd":267.69999980926514,"domainLookupStart":267.69999980926514,"fetchStart":267.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":267.69999980926514,"responseEnd":548.3999996185303,"responseStart":548.3999996185303,"secureConnectionStart":267.69999980926514},{"duration":280.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":267.8999996185303,"connectEnd":267.8999996185303,"connectStart":267.8999996185303,"domainLookupEnd":267.8999996185303,"domainLookupStart":267.8999996185303,"fetchStart":267.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":267.8999996185303,"responseEnd":548.6999998092651,"responseStart":548.6999998092651,"secureConnectionStart":267.8999996185303},{"duration":362.6000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":268.0999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":268.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":630.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":281.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":268.19999980926514,"connectEnd":268.19999980926514,"connectStart":268.19999980926514,"domainLookupEnd":268.19999980926514,"domainLookupStart":268.19999980926514,"fetchStart":268.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":268.19999980926514,"responseEnd":549.3999996185303,"responseStart":549.3999996185303,"secureConnectionStart":268.19999980926514},{"duration":362.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":268.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":268.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":630.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":281.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":268.5,"connectEnd":268.5,"connectStart":268.5,"domainLookupEnd":268.5,"domainLookupStart":268.5,"fetchStart":268.5,"redirectEnd":0,"redirectStart":0,"requestStart":268.5,"responseEnd":549.8999996185303,"responseStart":549.8999996185303,"secureConnectionStart":268.5},{"duration":431.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":269.5,"connectEnd":269.5,"connectStart":269.5,"domainLookupEnd":269.5,"domainLookupStart":269.5,"fetchStart":269.5,"redirectEnd":0,"redirectStart":0,"requestStart":269.5,"responseEnd":701.0999994277954,"responseStart":701.0999994277954,"secureConnectionStart":269.5},{"duration":533.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":269.5999994277954,"connectEnd":269.5999994277954,"connectStart":269.5999994277954,"domainLookupEnd":269.5999994277954,"domainLookupStart":269.5999994277954,"fetchStart":269.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":269.5999994277954,"responseEnd":803.5,"responseStart":803.5,"secureConnectionStart":269.5999994277954},{"duration":88.20000076293945,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":645.5999994277954,"connectEnd":645.5999994277954,"connectStart":645.5999994277954,"domainLookupEnd":645.5999994277954,"domainLookupStart":645.5999994277954,"fetchStart":645.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":645.5999994277954,"responseEnd":733.8000001907349,"responseStart":733.8000001907349,"secureConnectionStart":645.5999994277954}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":80,"responseStart":261,"responseEnd":263,"domLoading":264,"domInteractive":1142,"domContentLoadedEventStart":1142,"domContentLoadedEventEnd":1190,"domComplete":1809,"loadEventStart":1809,"loadEventEnd":1809,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1119.1999998092651},{"name":"bigPipe.sidebar-id.end","time":1119.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":1120.0999994277954},{"name":"bigPipe.activity-panel-pipe-id.end","time":1122.1999998092651},{"name":"activityTabFullyLoaded","time":1208.6999998092651}],"measures":[],"correlationId":"c72c0c28db0d2f","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":112,"dbReadsTimeInMs":15,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}