Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.11
INSTALL PLUGIN Spider SONAME 'ha_spider.so' ;
CREATE SERVER srv FOREIGN DATA WRAPPER MYSQL OPTIONS (SOCKET '' , DATABASE '' , USER '' , PASSWORD 'PWD0' );
CREATE TABLE t (a INT KEY AUTO_INCREMENT) ENGINE=Spider COMMENT= 'WRAPPER "mysql",srv "srv",TABLE "t"' ;
ALTER TABLE t ADD b TEXT;
CREATE OR REPLACE TABLE t (a INT ) ENGINE=Spider;
Leads to:
bb-10.11-midenok 80625038c703d46e2e01d32da5de234a6c31acb8 (Optimized)
10.11.0-opt>CREATE OR REPLACE TABLE t (a INT) ENGINE=Spider;
ERROR 1062 (23000): Duplicate entry 'test-t-0' for key 'PRIMARY'
bb-10.11-midenok 80625038c703d46e2e01d32da5de234a6c31acb8 (Optimized)
2022-10-15 16:40:29 25 [Warning] Access denied for user ''@'localhost' (using password: YES)
2022-10-15 16:40:29 4 [ERROR] mysqld: Can't find record in 'spider_tables'
2022-10-15 16:40:29 4 [ERROR] DDL_LOG: Got error 1032 when trying to execute action for entry 6 of type 'rename table'
Before MDEV-25292 it passes.
{"report":{"fcp":1098.7000000476837,"ttfb":325.2000000476837,"pageVisibility":"visible","entityId":115591,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"0bf578e0-6586-4947-8c0d-525c18b3ff0c","navigationType":0,"readyForUser":1177.7999999523163,"redirectCount":0,"resourceLoadedEnd":831.9000000953674,"resourceLoadedStart":330.2000000476837,"resourceTiming":[{"duration":168.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":330.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":330.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":498.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":168.40000009536743,"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":330.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":330.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":498.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":373.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":330.59999990463257,"connectEnd":330.59999990463257,"connectStart":330.59999990463257,"domainLookupEnd":330.59999990463257,"domainLookupStart":330.59999990463257,"fetchStart":330.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":501.7999999523163,"responseEnd":703.7000000476837,"responseStart":532.5999999046326,"secureConnectionStart":330.59999990463257},{"duration":501.2000000476837,"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":330.7000000476837,"connectEnd":330.7000000476837,"connectStart":330.7000000476837,"domainLookupEnd":330.7000000476837,"domainLookupStart":330.7000000476837,"fetchStart":330.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":503.09999990463257,"responseEnd":831.9000000953674,"responseStart":597.2000000476837,"secureConnectionStart":330.7000000476837},{"duration":206.10000014305115,"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":330.7999999523163,"connectEnd":330.7999999523163,"connectStart":330.7999999523163,"domainLookupEnd":330.7999999523163,"domainLookupStart":330.7999999523163,"fetchStart":330.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":503.7000000476837,"responseEnd":536.9000000953674,"responseStart":535.9000000953674,"secureConnectionStart":330.7999999523163},{"duration":207.70000004768372,"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":330.7999999523163,"connectEnd":330.7999999523163,"connectStart":330.7999999523163,"domainLookupEnd":330.7999999523163,"domainLookupStart":330.7999999523163,"fetchStart":330.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":503.7999999523163,"responseEnd":538.5,"responseStart":537.0999999046326,"secureConnectionStart":330.7999999523163},{"duration":207.70000004768372,"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":331,"connectEnd":331,"connectStart":331,"domainLookupEnd":331,"domainLookupStart":331,"fetchStart":331,"redirectEnd":0,"redirectStart":0,"requestStart":504.09999990463257,"responseEnd":538.7000000476837,"responseStart":537.7000000476837,"secureConnectionStart":331},{"duration":172.5,"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":331.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":331.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":503.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":213.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":331.09999990463257,"connectEnd":331.09999990463257,"connectStart":331.09999990463257,"domainLookupEnd":331.09999990463257,"domainLookupStart":331.09999990463257,"fetchStart":331.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":506.2000000476837,"responseEnd":545,"responseStart":544.0999999046326,"secureConnectionStart":331.09999990463257},{"duration":173.29999995231628,"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":331.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":331.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":504.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":215.60000014305115,"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":331.2999999523163,"connectEnd":331.2999999523163,"connectStart":331.2999999523163,"domainLookupEnd":331.2999999523163,"domainLookupStart":331.2999999523163,"fetchStart":331.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":509.90000009536743,"responseEnd":546.9000000953674,"responseStart":546.0999999046326,"secureConnectionStart":331.2999999523163},{"duration":432.30000019073486,"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":337.09999990463257,"connectEnd":337.09999990463257,"connectStart":337.09999990463257,"domainLookupEnd":337.09999990463257,"domainLookupStart":337.09999990463257,"fetchStart":337.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":600,"responseEnd":769.4000000953674,"responseStart":763.2999999523163,"secureConnectionStart":337.09999990463257},{"duration":433.59999990463257,"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":337.2000000476837,"connectEnd":337.2000000476837,"connectStart":337.2000000476837,"domainLookupEnd":337.2000000476837,"domainLookupStart":337.2000000476837,"fetchStart":337.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":650.5,"responseEnd":770.7999999523163,"responseStart":767.4000000953674,"secureConnectionStart":337.2000000476837},{"duration":147,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":850,"connectEnd":850,"connectStart":850,"domainLookupEnd":850,"domainLookupStart":850,"fetchStart":850,"redirectEnd":0,"redirectStart":0,"requestStart":965,"responseEnd":997,"responseStart":996.4000000953674,"secureConnectionStart":850}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":165,"responseStart":325,"responseEnd":330,"domLoading":328,"domInteractive":1240,"domContentLoadedEventStart":1240,"domContentLoadedEventEnd":1290,"domComplete":1717,"loadEventStart":1717,"loadEventEnd":1717,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1213.7000000476837},{"name":"bigPipe.sidebar-id.end","time":1214.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1214.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1217},{"name":"activityTabFullyLoaded","time":1346}],"measures":[],"correlationId":"5638f2c3df5e13","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":75,"dbReadsTimeInMs":12,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
This part produces the expected error.
CREATE TABLE t (a INT KEY) ENGINE=Spider;
UPDATE t SET c0=b0;
DROP TABLE IF EXISTS mysql.spider_tables;
CREATE OR REPLACE TABLE t (a TEXT);
Since the system mysql.spider_tables table was deleted, we can't expect the spider working normally.
So not a bug..
I wasn't able to reproduce the error with this:
RENAME TABLE test.t2 TO db1.t2;
Can something still be wrong with the mysql.spider_tables on your computer?
Other issues seem to manifest that initial problem. And fixed with the patch Aleksey mentions.