Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
N/A
After a crash recovery, the vector key on a MyISAM table remains corrupt, CHECK doesn't detect it and REPAIR doesn't fix it (or at least I couldn't find the way to detect/fix it by the means of CHECK/REPAIR: EXTENDED or FORCE doesn't repair it, and USE_FRM destroys it, which may be a separate issue).
CREATE TABLE t (v VECTOR(1) NOT NULL , VECTOR(v)) ENGINE=MyISAM;
INSERT INTO t (v) VALUES (0x30303030),(0x31313131);
--let $shutdown_timeout=0
--source include/restart_mysqld.inc
CHECK TABLE t EXTENDED;
REPAIR TABLE t EXTENDED;
CHECK TABLE t EXTENDED;
SELECT v FROM t ORDER BY VEC_DISTANCE_EUCLIDEAN(0x323233232,v) LIMIT 1;
# Cleanup
DROP TABLE t;
bb-11.6-MDEV-32887-vector c29016301f7095ccc482fdfec1887f61e5adbed1
CHECK TABLE t EXTENDED;
Table Op Msg_type Msg_text
test.t check warning 1 client is using or hasn't closed the table properly
test.t check status OK
REPAIR TABLE t EXTENDED;
Table Op Msg_type Msg_text
test.t repair status OK
CHECK TABLE t EXTENDED;
Table Op Msg_type Msg_text
test.t check status OK
SELECT v FROM t ORDER BY VEC_DISTANCE_EUCLIDEAN(0x323233232,v) LIMIT 1;
bug.w2 [ fail ]
Test ended at 2024-10-21 18:28:29
CURRENT_TEST: bug.w2
mysqltest: At line 8: query 'SELECT v FROM t ORDER BY VEC_DISTANCE_EUCLIDEAN(0x323233232,v) LIMIT 1' failed: HA_ERR_CRASHED_ON_USAGE (145): Table './test/t#i#00' is marked as crashed and should be repaired
2024-10-21 18:28:29 3 [ERROR] mariadbd: Table './test/t#i#00' is marked as crashed and should be repaired
2024-10-21 18:28:29 3 [ERROR] Got error 126 when reading table './test/t'
2024-10-21 18:28:29 3 [ERROR] mariadbd: Index for table 't' is corrupt; try to repair it
Rebuilding table by ALTER helps.
is caused by
MDEV-34939
vector search in 11.7
Closed
{"report":{"fcp":824.6999999880791,"ttfb":224.30000001192093,"pageVisibility":"visible","entityId":131297,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"100a6ba9-28df-4375-80e8-5a7d572efadc","navigationType":0,"readyForUser":907.6999999880791,"redirectCount":0,"resourceLoadedEnd":985,"resourceLoadedStart":229.80000001192093,"resourceTiming":[{"duration":89.19999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":229.80000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":229.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":319,"responseStart":0,"secureConnectionStart":0},{"duration":89.30000001192093,"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":230.0999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":230.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":319.39999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":144.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":230.30000001192093,"connectEnd":230.30000001192093,"connectStart":230.30000001192093,"domainLookupEnd":230.30000001192093,"domainLookupStart":230.30000001192093,"fetchStart":230.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":230.30000001192093,"responseEnd":375,"responseStart":375,"secureConnectionStart":230.30000001192093},{"duration":200.19999998807907,"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":230.39999997615814,"connectEnd":230.39999997615814,"connectStart":230.39999997615814,"domainLookupEnd":230.39999997615814,"domainLookupStart":230.39999997615814,"fetchStart":230.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":230.39999997615814,"responseEnd":430.5999999642372,"responseStart":430.5999999642372,"secureConnectionStart":230.39999997615814},{"duration":203.70000004768372,"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":230.5999999642372,"connectEnd":230.5999999642372,"connectStart":230.5999999642372,"domainLookupEnd":230.5999999642372,"domainLookupStart":230.5999999642372,"fetchStart":230.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":230.5999999642372,"responseEnd":434.30000001192093,"responseStart":434.30000001192093,"secureConnectionStart":230.5999999642372},{"duration":204.10000002384186,"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":230.69999998807907,"connectEnd":230.69999998807907,"connectStart":230.69999998807907,"domainLookupEnd":230.69999998807907,"domainLookupStart":230.69999998807907,"fetchStart":230.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":230.69999998807907,"responseEnd":434.80000001192093,"responseStart":434.80000001192093,"secureConnectionStart":230.69999998807907},{"duration":204.5,"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":230.89999997615814,"connectEnd":230.89999997615814,"connectStart":230.89999997615814,"domainLookupEnd":230.89999997615814,"domainLookupStart":230.89999997615814,"fetchStart":230.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":230.89999997615814,"responseEnd":435.39999997615814,"responseStart":435.39999997615814,"secureConnectionStart":230.89999997615814},{"duration":287.30000001192093,"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":231.0999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":231.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":518.3999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":204.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":231.30000001192093,"connectEnd":231.30000001192093,"connectStart":231.30000001192093,"domainLookupEnd":231.30000001192093,"domainLookupStart":231.30000001192093,"fetchStart":231.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":231.30000001192093,"responseEnd":436,"responseStart":436,"secureConnectionStart":231.30000001192093},{"duration":287.10000002384186,"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":231.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":231.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":518.5,"responseStart":0,"secureConnectionStart":0},{"duration":205.10000002384186,"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":231.5999999642372,"connectEnd":231.5999999642372,"connectStart":231.5999999642372,"domainLookupEnd":231.5999999642372,"domainLookupStart":231.5999999642372,"fetchStart":231.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":231.5999999642372,"responseEnd":436.69999998807907,"responseStart":436.69999998807907,"secureConnectionStart":231.5999999642372},{"duration":570.5999999642372,"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":237,"connectEnd":237,"connectStart":237,"domainLookupEnd":237,"domainLookupStart":237,"fetchStart":237,"redirectEnd":0,"redirectStart":0,"requestStart":237,"responseEnd":807.5999999642372,"responseStart":807.5999999642372,"secureConnectionStart":237},{"duration":741,"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":237,"connectEnd":237,"connectStart":237,"domainLookupEnd":237,"domainLookupStart":237,"fetchStart":237,"redirectEnd":0,"redirectStart":0,"requestStart":237,"responseEnd":978,"responseStart":978,"secureConnectionStart":237},{"duration":278.5999999642372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":529.8000000119209,"connectEnd":529.8000000119209,"connectStart":529.8000000119209,"domainLookupEnd":529.8000000119209,"domainLookupStart":529.8000000119209,"fetchStart":529.8000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":529.8000000119209,"responseEnd":808.3999999761581,"responseStart":808.3000000119209,"secureConnectionStart":529.8000000119209},{"duration":167.60000002384186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":818.1999999880791,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":818.1999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":985.8000000119209,"responseStart":0,"secureConnectionStart":0},{"duration":144.39999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":840.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":840.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":984.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":143.9000000357628,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2bu7/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":841.0999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":841.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":985,"responseStart":0,"secureConnectionStart":0},{"duration":138.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":841.8999999761581,"connectEnd":841.8999999761581,"connectStart":841.8999999761581,"domainLookupEnd":841.8999999761581,"domainLookupStart":841.8999999761581,"fetchStart":841.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":841.8999999761581,"responseEnd":980.3999999761581,"responseStart":980.3999999761581,"secureConnectionStart":841.8999999761581},{"duration":182.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":842.5,"connectEnd":842.5,"connectStart":842.5,"domainLookupEnd":842.5,"domainLookupStart":842.5,"fetchStart":842.5,"redirectEnd":0,"redirectStart":0,"requestStart":842.5,"responseEnd":1024.8999999761581,"responseStart":1024.8999999761581,"secureConnectionStart":842.5},{"duration":183.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/86ee9bbc76cd1bcd8556fcdcf46241c9-CDN/lu2bu7/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":842.8000000119209,"connectEnd":842.8000000119209,"connectStart":842.8000000119209,"domainLookupEnd":842.8000000119209,"domainLookupStart":842.8000000119209,"fetchStart":842.8000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":842.8000000119209,"responseEnd":1026.5,"responseStart":1026.5,"secureConnectionStart":842.8000000119209}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":36,"responseStart":224,"responseEnd":231,"domLoading":227,"domInteractive":1009,"domContentLoadedEventStart":1009,"domContentLoadedEventEnd":1050,"domComplete":1284,"loadEventStart":1284,"loadEventEnd":1284,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":991.5},{"name":"bigPipe.sidebar-id.end","time":992.3000000119209},{"name":"bigPipe.activity-panel-pipe-id.start","time":992.3999999761581},{"name":"bigPipe.activity-panel-pipe-id.end","time":993.5},{"name":"activityTabFullyLoaded","time":1099.3999999761581}],"measures":[],"correlationId":"735c53262ee1f0","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":109,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}