-
Bug
-
-
Major
-
Resolution:
Fixed
-
None
-
-
-
MariaDB gives a misleading error message if you specify an invalid value for a known system variable on the command line.
Take innodb-log-file-size as an example variable:
Known variable, legal value:
$ sql/mariadbd ... --innodb-log-file-size=1000000
|
...
|
2024-02-15 13:05:18 0 [Note] sql/mariadbd: ready for connections.
|
Known variable, invalid values:
$ sql/mariadbd ... --innodb-log-file-size=-123 # <- Not legal because negative
|
...
|
2024-02-15 13:06:25 0 [ERROR] sql/mariadbd: unknown variable 'innodb-log-file-size=-123'
|
$ sql/mariadbd ... --innodb-log-file-size=999999999999999999999999999 # <- Not legal because it's too large
|
...
|
2024-02-15 13:06:59 0 [ERROR] sql/mariadbd: unknown variable 'innodb-log-file-size=999999999999999999999999999'
|
Solution
Instead of reporting this as an "unknown variable", it should be reported as an "invalid value."
The code that produces this misleading error message is at https://github.com/MariaDB/server/blob/e71aecfd308d6093fd693044253518a872994394/mysys/my_getopt.c#L389
{"report":{"fcp":809.7000000476837,"ttfb":257.7999999523163,"pageVisibility":"visible","entityId":127940,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"862139d6-ec88-49df-9ba7-0dc2d3323883","navigationType":0,"readyForUser":888.5,"redirectCount":0,"resourceLoadedEnd":1024.2999999523163,"resourceLoadedStart":262.59999990463257,"resourceTiming":[{"duration":7.700000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":262.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":262.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":270.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":7.799999952316284,"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":262.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":262.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":270.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":67.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":263.09999990463257,"connectEnd":263.09999990463257,"connectStart":263.09999990463257,"domainLookupEnd":263.09999990463257,"domainLookupStart":263.09999990463257,"fetchStart":263.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":263.09999990463257,"responseEnd":330.40000009536743,"responseStart":330.40000009536743,"secureConnectionStart":263.09999990463257},{"duration":175.89999985694885,"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":263.2000000476837,"connectEnd":263.2000000476837,"connectStart":263.2000000476837,"domainLookupEnd":263.2000000476837,"domainLookupStart":263.2000000476837,"fetchStart":263.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":263.2000000476837,"responseEnd":439.09999990463257,"responseStart":439.09999990463257,"secureConnectionStart":263.2000000476837},{"duration":179.5,"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":263.5,"connectEnd":263.5,"connectStart":263.5,"domainLookupEnd":263.5,"domainLookupStart":263.5,"fetchStart":263.5,"redirectEnd":0,"redirectStart":0,"requestStart":263.5,"responseEnd":443,"responseStart":443,"secureConnectionStart":263.5},{"duration":179.90000009536743,"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":263.59999990463257,"connectEnd":263.59999990463257,"connectStart":263.59999990463257,"domainLookupEnd":263.59999990463257,"domainLookupStart":263.59999990463257,"fetchStart":263.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":263.59999990463257,"responseEnd":443.5,"responseStart":443.40000009536743,"secureConnectionStart":263.59999990463257},{"duration":180.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":263.7999999523163,"connectEnd":263.7999999523163,"connectStart":263.7999999523163,"domainLookupEnd":263.7999999523163,"domainLookupStart":263.7999999523163,"fetchStart":263.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":263.7999999523163,"responseEnd":444.2999999523163,"responseStart":444.2999999523163,"secureConnectionStart":263.7999999523163},{"duration":209.90000009536743,"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":264.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":264.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":474,"responseStart":0,"secureConnectionStart":0},{"duration":180.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":264.2000000476837,"connectEnd":264.2000000476837,"connectStart":264.2000000476837,"domainLookupEnd":264.2000000476837,"domainLookupStart":264.2000000476837,"fetchStart":264.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":264.2000000476837,"responseEnd":444.7000000476837,"responseStart":444.7000000476837,"secureConnectionStart":264.2000000476837},{"duration":209.79999995231628,"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":264.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":264.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":474.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":180.79999995231628,"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":264.5,"connectEnd":264.5,"connectStart":264.5,"domainLookupEnd":264.5,"domainLookupStart":264.5,"fetchStart":264.5,"redirectEnd":0,"redirectStart":0,"requestStart":264.5,"responseEnd":445.2999999523163,"responseStart":445.2999999523163,"secureConnectionStart":264.5},{"duration":751.8000001907349,"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":270.09999990463257,"connectEnd":270.09999990463257,"connectStart":270.09999990463257,"domainLookupEnd":270.09999990463257,"domainLookupStart":270.09999990463257,"fetchStart":270.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":270.09999990463257,"responseEnd":1021.9000000953674,"responseStart":1021.9000000953674,"secureConnectionStart":270.09999990463257},{"duration":754.2000000476837,"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":270.09999990463257,"connectEnd":270.09999990463257,"connectStart":270.09999990463257,"domainLookupEnd":270.09999990463257,"domainLookupStart":270.09999990463257,"fetchStart":270.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":270.09999990463257,"responseEnd":1024.2999999523163,"responseStart":1024.2999999523163,"secureConnectionStart":270.09999990463257},{"duration":536.2999999523163,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":486,"connectEnd":486,"connectStart":486,"domainLookupEnd":486,"domainLookupStart":486,"fetchStart":486,"redirectEnd":0,"redirectStart":0,"requestStart":486,"responseEnd":1022.2999999523163,"responseStart":1022.2999999523163,"secureConnectionStart":486},{"duration":223.70000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":803.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":803.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1027.2999999523163,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":77,"responseStart":258,"responseEnd":266,"domLoading":261,"domInteractive":1096,"domContentLoadedEventStart":1096,"domContentLoadedEventEnd":1135,"domComplete":1980,"loadEventStart":1980,"loadEventEnd":1981,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1085.2000000476837},{"name":"bigPipe.sidebar-id.end","time":1086.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1086.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1088.7000000476837},{"name":"activityTabFullyLoaded","time":1143.5999999046326}],"measures":[],"correlationId":"a9eaa38f1aa042","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":118,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}