Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
10.3(EOL) , 10.4(EOL) , 10.5 , 10.6 , 10.7(EOL) , 10.8(EOL) , 10.9(EOL)
If I start the server with --skip-grant-tables , then CREATE EVENT doesn't work:
The error message is extremely misleading: "Cannot proceed, because event scheduler is disabled", even if (as in this case) I've explicitly set EVENT_SCHEDULER=ON .
$ ./mariadbd --version
./mariadbd Ver 10.6.10-MariaDB for Linux on x86_64
$ ./mariadbd --no-defaults --socket=$PATH --skip-grant-tables --skip-networking --datadir=$DATADIR --event-scheduler=ON &
...
$ ./mariadb --no-defaults --socket=$PATH \
-e 'select @@global.event_scheduler; create event if not exists mysql.test on schedule at current_timestamp + interval 1 minute do select 1;'
+--------------------------+
| @@global.event_scheduler |
+--------------------------+
| ON |
+--------------------------+
ERROR 1577 (HY000) at line 1: Cannot proceed, because event scheduler is disabled
This misleading message is a consequence of the fix for MDEV-19262 , which changed the previous error message, even though it was more accurate in this case:
From https://github.com/mariadb/server/commit/6c9a6bad4fe90c8bfcfe6dbf46835a39edc95c6f by wlad :
--- a/sql/share/errmsg-utf8.txt
+++ b/sql/share/errmsg-utf8.txt
@@ -5974,2 +5974,2 @@
ER_EVENTS_DB_ERROR
- eng "Cannot proceed because system tables used by Event Scheduler were found damaged at server start"
+ eng "Cannot proceed, because event scheduler is disabled"
Ideas:
There should be ≥2 error messages that actually distinguish the distinct cases:
Cannot proceed, because event scheduler is disabled (should only be used when EVENT_SCHEDULER=DISABLED , obviously)
Cannot proceed, because grant tables are disabled ((this case)
Anything else?
Is there any reason the event scheduler can't/shouldn't work with grant tables disabled?
is caused by
MDEV-19262
Server error message is unclear if event is created and event_scheduler = DISABLED
Closed
{"report":{"fcp":925.3999996185303,"ttfb":249.79999923706055,"pageVisibility":"visible","entityId":115742,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"ea66fb0b-26f0-49ca-9c94-d6346f74ffe9","navigationType":0,"readyForUser":1035.0999994277954,"redirectCount":0,"resourceLoadedEnd":1175.8999996185303,"resourceLoadedStart":256.0999994277954,"resourceTiming":[{"duration":122.90000057220459,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":256.0999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":256.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":379,"responseStart":0,"secureConnectionStart":0},{"duration":123,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":256.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":256.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":379.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":136.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":256.5,"connectEnd":256.5,"connectStart":256.5,"domainLookupEnd":256.5,"domainLookupStart":256.5,"fetchStart":256.5,"redirectEnd":0,"redirectStart":0,"requestStart":256.5,"responseEnd":393,"responseStart":393,"secureConnectionStart":256.5},{"duration":178.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":256.69999980926514,"connectEnd":256.69999980926514,"connectStart":256.69999980926514,"domainLookupEnd":256.69999980926514,"domainLookupStart":256.69999980926514,"fetchStart":256.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":256.69999980926514,"responseEnd":435.0999994277954,"responseStart":435.0999994277954,"secureConnectionStart":256.69999980926514},{"duration":182,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":256.8999996185303,"connectEnd":256.8999996185303,"connectStart":256.8999996185303,"domainLookupEnd":256.8999996185303,"domainLookupStart":256.8999996185303,"fetchStart":256.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":256.8999996185303,"responseEnd":438.8999996185303,"responseStart":438.8999996185303,"secureConnectionStart":256.8999996185303},{"duration":182.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":257.0999994277954,"connectEnd":257.0999994277954,"connectStart":257.0999994277954,"domainLookupEnd":257.0999994277954,"domainLookupStart":257.0999994277954,"fetchStart":257.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":257.0999994277954,"responseEnd":439.3999996185303,"responseStart":439.3999996185303,"secureConnectionStart":257.0999994277954},{"duration":182.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":257.29999923706055,"connectEnd":257.29999923706055,"connectStart":257.29999923706055,"domainLookupEnd":257.29999923706055,"domainLookupStart":257.29999923706055,"fetchStart":257.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":257.29999923706055,"responseEnd":439.79999923706055,"responseStart":439.79999923706055,"secureConnectionStart":257.29999923706055},{"duration":286.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":257.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":257.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":544.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":182.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":257.5999994277954,"connectEnd":257.5999994277954,"connectStart":257.5999994277954,"domainLookupEnd":257.5999994277954,"domainLookupStart":257.5999994277954,"fetchStart":257.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":257.5999994277954,"responseEnd":440.3999996185303,"responseStart":440.3999996185303,"secureConnectionStart":257.5999994277954},{"duration":286.5999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":257.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":257.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":544.2999992370605,"responseStart":0,"secureConnectionStart":0},{"duration":183.0999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":258,"connectEnd":258,"connectStart":258,"domainLookupEnd":258,"domainLookupStart":258,"fetchStart":258,"redirectEnd":0,"redirectStart":0,"requestStart":258,"responseEnd":441.0999994277954,"responseStart":441.0999994277954,"secureConnectionStart":258},{"duration":911.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":263.0999994277954,"connectEnd":263.0999994277954,"connectStart":263.0999994277954,"domainLookupEnd":263.0999994277954,"domainLookupStart":263.0999994277954,"fetchStart":263.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":263.0999994277954,"responseEnd":1174.1999998092651,"responseStart":1174.1999998092651,"secureConnectionStart":263.0999994277954},{"duration":911.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":263.19999980926514,"connectEnd":263.19999980926514,"connectStart":263.19999980926514,"domainLookupEnd":263.19999980926514,"domainLookupStart":263.19999980926514,"fetchStart":263.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":263.19999980926514,"responseEnd":1174.5999994277954,"responseStart":1174.5999994277954,"secureConnectionStart":263.19999980926514},{"duration":103.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":566.5,"connectEnd":566.5,"connectStart":566.5,"domainLookupEnd":566.5,"domainLookupStart":566.5,"fetchStart":566.5,"redirectEnd":0,"redirectStart":0,"requestStart":566.5,"responseEnd":670.1999998092651,"responseStart":670.1999998092651,"secureConnectionStart":566.5},{"duration":337.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/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&whisper-enabled=true","startTime":838.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":838.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1175.8999996185303,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":109,"responseStart":250,"responseEnd":257,"domLoading":254,"domInteractive":1201,"domContentLoadedEventStart":1201,"domContentLoadedEventEnd":1245,"domComplete":2331,"loadEventStart":2331,"loadEventEnd":2333,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1180.5},{"name":"bigPipe.sidebar-id.end","time":1181.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":1181.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1183.7999992370605},{"name":"activityTabFullyLoaded","time":1257}],"measures":[],"correlationId":"62bdeac4601dd8","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":81,"dbReadsTimeInMs":9,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}