Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
None
Currently the read_only option is defined the following way:
Make all non-temporary tables read-only, with the exception for replication (slave) threads and users with the 'READ ONLY ADMIN' privilege.
The current implementation of read_only does not block users from using
SELECT ... LOCK IN SHARE MODE or LOCK TABLES ... READ, both of which can block
replication threads from continuing. LOCK IN SHARE MODE is especially dangerous as it takes write locks, which will block replication threads.
The solve this issue, we plan to extend the --read_only option to have 3 levels:
Note that the read_only option has no effects on slave/replica threads or temporary tables.
0 changes allowed
1 Make all non-temporary tables read-only, with the exception for users with the 'READ ONLY ADMIN' privilege.
2 block also LOCK TABLES and SELECT IN SHARE MOD
3 block also users with 'READ ONLY ADMIN' privilege. This is sames as MySQL's super_read_only option.
relates to
MDEV-9458
FR: Super read-only mode
Closed
{"report":{"fcp":1015.8999998569489,"ttfb":158.59999990463257,"pageVisibility":"visible","entityId":133551,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a7ac6e19-d3b6-4f3d-b209-8db95b43a93e","navigationType":0,"readyForUser":1080,"redirectCount":0,"resourceLoadedEnd":1150.6999998092651,"resourceLoadedStart":163.69999980926514,"resourceTiming":[{"duration":145.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":163.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":163.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":308.89999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":145,"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":164,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":309,"responseStart":0,"secureConnectionStart":0},{"duration":154,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":164.09999990463257,"connectEnd":164.09999990463257,"connectStart":164.09999990463257,"domainLookupEnd":164.09999990463257,"domainLookupStart":164.09999990463257,"fetchStart":164.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":164.09999990463257,"responseEnd":318.09999990463257,"responseStart":318.09999990463257,"secureConnectionStart":164.09999990463257},{"duration":496.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":164.29999995231628,"connectEnd":164.29999995231628,"connectStart":164.29999995231628,"domainLookupEnd":164.29999995231628,"domainLookupStart":164.29999995231628,"fetchStart":164.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":164.29999995231628,"responseEnd":660.5,"responseStart":660.5,"secureConnectionStart":164.29999995231628},{"duration":499.7000000476837,"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":164.39999985694885,"connectEnd":164.39999985694885,"connectStart":164.39999985694885,"domainLookupEnd":164.39999985694885,"domainLookupStart":164.39999985694885,"fetchStart":164.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":164.39999985694885,"responseEnd":664.0999999046326,"responseStart":664.0999999046326,"secureConnectionStart":164.39999985694885},{"duration":500,"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":164.59999990463257,"connectEnd":164.59999990463257,"connectStart":164.59999990463257,"domainLookupEnd":164.59999990463257,"domainLookupStart":164.59999990463257,"fetchStart":164.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":164.59999990463257,"responseEnd":664.5999999046326,"responseStart":664.5,"secureConnectionStart":164.59999990463257},{"duration":500.2999999523163,"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":164.59999990463257,"connectEnd":164.59999990463257,"connectStart":164.59999990463257,"domainLookupEnd":164.59999990463257,"domainLookupStart":164.59999990463257,"fetchStart":164.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":164.59999990463257,"responseEnd":664.8999998569489,"responseStart":664.8999998569489,"secureConnectionStart":164.59999990463257},{"duration":500.60000014305115,"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":164.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":665.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":500.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":164.79999995231628,"connectEnd":164.79999995231628,"connectStart":164.79999995231628,"domainLookupEnd":164.79999995231628,"domainLookupStart":164.79999995231628,"fetchStart":164.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":164.79999995231628,"responseEnd":665.5,"responseStart":665.5,"secureConnectionStart":164.79999995231628},{"duration":500.7999999523163,"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":165,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":165,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":665.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":500.90000009536743,"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":165.09999990463257,"connectEnd":165.09999990463257,"connectStart":165.09999990463257,"domainLookupEnd":165.09999990463257,"domainLookupStart":165.09999990463257,"fetchStart":165.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":165.09999990463257,"responseEnd":666,"responseStart":665.8999998569489,"secureConnectionStart":165.09999990463257},{"duration":609.7999999523163,"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":165.79999995231628,"connectEnd":165.79999995231628,"connectStart":165.79999995231628,"domainLookupEnd":165.79999995231628,"domainLookupStart":165.79999995231628,"fetchStart":165.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":165.79999995231628,"responseEnd":775.5999999046326,"responseStart":775.5999999046326,"secureConnectionStart":165.79999995231628},{"duration":980.5,"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":170.19999980926514,"connectEnd":170.19999980926514,"connectStart":170.19999980926514,"domainLookupEnd":170.19999980926514,"domainLookupStart":170.19999980926514,"fetchStart":170.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":170.19999980926514,"responseEnd":1150.6999998092651,"responseStart":1150.6999998092651,"secureConnectionStart":170.19999980926514},{"duration":308.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":465.5,"connectEnd":465.5,"connectStart":465.5,"domainLookupEnd":465.5,"domainLookupStart":465.5,"fetchStart":465.5,"redirectEnd":0,"redirectStart":0,"requestStart":465.5,"responseEnd":774,"responseStart":774,"secureConnectionStart":465.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":47,"responseStart":159,"responseEnd":164,"domLoading":162,"domInteractive":1165,"domContentLoadedEventStart":1165,"domContentLoadedEventEnd":1202,"domComplete":1884,"loadEventStart":1884,"loadEventEnd":1885,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1152.5999999046326},{"name":"bigPipe.sidebar-id.end","time":1153.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1153.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1156},{"name":"activityTabFullyLoaded","time":1208.7999999523163}],"measures":[],"correlationId":"752ce1aa1c9b59","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":65,"dbReadsTimeInMs":10,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}