Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.1.28 , 5.5(EOL) , 10.0(EOL) , 10.1(EOL) , 10.2(EOL)
I have a replicated slave with "read_only=1" set in my.cnf
I have a user set up as follows:
CREATE USER 'slave_user' @ 'localhost' IDENTIFIED BY 'slave_pswd' ;
GRANT ALL ON mydb.* TO 'slave_user' @ 'localhost' WITH GRANT OPTION ;
If I log in as 'slave_user', I can create a temporary table, write to it, and then drop it successfully:
CREATE TEMPORARY TABLE temp_x (id integer );
INSERT INTO temp_x values (1);
DROP TEMPORARY TABLE IF EXISTS temp_x;
However, if I have not created a temporary table, and I start with:
DROP TEMPORARY TABLE IF EXISTS temp_x;
I get the error: ERROR 1290 (HY000): The MariaDB server is running with the --read-only option so it cannot execute this statement
I have countless lines of application code which always checks to make sure a temporary table is dropped before creating it to avoid an "already exists" error. Always worked on MySQL 5.6 and lower, on the exact same slave database with read_only. After upgrading to MariaDB 10.1, this problem emerged.
{"report":{"fcp":829.2000000476837,"ttfb":186.89999997615814,"pageVisibility":"visible","entityId":63575,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":1,"journeyId":"fe9f2f34-81b7-44c2-adbe-b752d6bf6893","navigationType":0,"readyForUser":937.7999999523163,"redirectCount":0,"resourceLoadedEnd":795,"resourceLoadedStart":192,"resourceTiming":[{"duration":141.60000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":192,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":192,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":333.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":141.5,"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":192.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":192.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":333.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":150.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":192.29999995231628,"connectEnd":192.29999995231628,"connectStart":192.29999995231628,"domainLookupEnd":192.29999995231628,"domainLookupStart":192.29999995231628,"fetchStart":192.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":192.29999995231628,"responseEnd":342.7000000476837,"responseStart":342.7000000476837,"secureConnectionStart":192.29999995231628},{"duration":226.70000004768372,"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":192.39999997615814,"connectEnd":192.39999997615814,"connectStart":192.39999997615814,"domainLookupEnd":192.39999997615814,"domainLookupStart":192.39999997615814,"fetchStart":192.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":192.39999997615814,"responseEnd":419.10000002384186,"responseStart":419,"secureConnectionStart":192.39999997615814},{"duration":230.19999992847443,"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":192.60000002384186,"connectEnd":192.60000002384186,"connectStart":192.60000002384186,"domainLookupEnd":192.60000002384186,"domainLookupStart":192.60000002384186,"fetchStart":192.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":192.60000002384186,"responseEnd":422.7999999523163,"responseStart":422.7999999523163,"secureConnectionStart":192.60000002384186},{"duration":230.90000009536743,"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":192.79999995231628,"connectEnd":192.79999995231628,"connectStart":192.79999995231628,"domainLookupEnd":192.79999995231628,"domainLookupStart":192.79999995231628,"fetchStart":192.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":192.79999995231628,"responseEnd":423.7000000476837,"responseStart":423.7000000476837,"secureConnectionStart":192.79999995231628},{"duration":231.89999997615814,"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":192.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":192.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":424.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":231.39999997615814,"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":192.89999997615814,"connectEnd":192.89999997615814,"connectStart":192.89999997615814,"domainLookupEnd":192.89999997615814,"domainLookupStart":192.89999997615814,"fetchStart":192.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":192.89999997615814,"responseEnd":424.2999999523163,"responseStart":424.2999999523163,"secureConnectionStart":192.89999997615814},{"duration":231.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":193.10000002384186,"connectEnd":193.10000002384186,"connectStart":193.10000002384186,"domainLookupEnd":193.10000002384186,"domainLookupStart":193.10000002384186,"fetchStart":193.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":193.10000002384186,"responseEnd":424.89999997615814,"responseStart":424.89999997615814,"secureConnectionStart":193.10000002384186},{"duration":232.19999992847443,"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":193.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":193.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":425.39999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":232.20000004768372,"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":193.29999995231628,"connectEnd":193.29999995231628,"connectStart":193.29999995231628,"domainLookupEnd":193.29999995231628,"domainLookupStart":193.29999995231628,"fetchStart":193.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":193.29999995231628,"responseEnd":425.5,"responseStart":425.5,"secureConnectionStart":193.29999995231628},{"duration":570.3000000715256,"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":193.89999997615814,"connectEnd":193.89999997615814,"connectStart":193.89999997615814,"domainLookupEnd":193.89999997615814,"domainLookupStart":193.89999997615814,"fetchStart":193.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":193.89999997615814,"responseEnd":764.2000000476837,"responseStart":764.2000000476837,"secureConnectionStart":193.89999997615814},{"duration":601,"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":194,"connectEnd":194,"connectStart":194,"domainLookupEnd":194,"domainLookupStart":194,"fetchStart":194,"redirectEnd":0,"redirectStart":0,"requestStart":194,"responseEnd":795,"responseStart":795,"secureConnectionStart":194},{"duration":149.89999997615814,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":556.8999999761581,"connectEnd":556.8999999761581,"connectStart":556.8999999761581,"domainLookupEnd":556.8999999761581,"domainLookupStart":556.8999999761581,"fetchStart":556.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":556.8999999761581,"responseEnd":706.7999999523163,"responseStart":706.7999999523163,"secureConnectionStart":556.8999999761581}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":41,"responseStart":187,"responseEnd":189,"domLoading":190,"domInteractive":997,"domContentLoadedEventStart":997,"domContentLoadedEventEnd":1030,"domComplete":2060,"loadEventStart":2060,"loadEventEnd":2062,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":976.5},{"name":"bigPipe.sidebar-id.end","time":977.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":977.3999999761581},{"name":"bigPipe.activity-panel-pipe-id.end","time":979.6000000238419},{"name":"activityTabFullyLoaded","time":1036.7999999523163}],"measures":[],"correlationId":"2eb0ffa0dcb627","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":83,"dbReadsTimeInMs":9,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}