I'm evaluating the possibility of migrating and existing SQL Anywhere database to MariaDB. While trying to port the existing tables, I've come across a scenario which crashes the mysqld server and renders the database useless. I can restart the server but when I attempt to do anything with the database, it crashes again (error log attached).
Here is SQL that that will reproduce this problem:
CREATE TABLE column_code
|
( column_name varchar(50)
|
, code char(2)
|
, description varchar(255)
|
, primary key (column_name, code asc)
|
);
|
CREATE TABLE sample_table
|
( id integer NOT NULL AUTO_INCREMENT PRIMARY KEY
|
, value1 integer
|
, value2 char(1)
|
, some_code char(2) NOT NULL CHECK(@column in (select code from column_code where column_name = 'sample_table.some_code'))
|
);
|
I'm not defending the way this was implemented, but it is what it is. I haven't found any documentation stating this shouldn't work. Please let me know if that's the case.
Thanks!
{"report":{"fcp":780.3000000715256,"ttfb":268.5,"pageVisibility":"visible","entityId":60807,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"5ce3a2a1-3f73-49c2-bdcf-2ed3221ba41b","navigationType":0,"readyForUser":865.8000000715256,"redirectCount":0,"resourceLoadedEnd":574.3999999761581,"resourceLoadedStart":275.60000002384186,"resourceTiming":[{"duration":30,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":275.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":275.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":305.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":30.299999952316284,"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":275.8000000715256,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":275.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":306.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":83.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":276,"connectEnd":276,"connectStart":276,"domainLookupEnd":276,"domainLookupStart":276,"fetchStart":276,"redirectEnd":0,"redirectStart":0,"requestStart":310.60000002384186,"responseEnd":359.2000000476837,"responseStart":326.39999997615814,"secureConnectionStart":276},{"duration":102.89999997615814,"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":276.2000000476837,"connectEnd":276.2000000476837,"connectStart":276.2000000476837,"domainLookupEnd":276.2000000476837,"domainLookupStart":276.2000000476837,"fetchStart":276.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":312.10000002384186,"responseEnd":379.10000002384186,"responseStart":329.7000000476837,"secureConnectionStart":276.2000000476837},{"duration":56.90000009536743,"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":276.39999997615814,"connectEnd":276.39999997615814,"connectStart":276.39999997615814,"domainLookupEnd":276.39999997615814,"domainLookupStart":276.39999997615814,"fetchStart":276.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":312.2000000476837,"responseEnd":333.3000000715256,"responseStart":331.5,"secureConnectionStart":276.39999997615814},{"duration":54.89999997615814,"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":276.5,"connectEnd":276.5,"connectStart":276.5,"domainLookupEnd":276.5,"domainLookupStart":276.5,"fetchStart":276.5,"redirectEnd":0,"redirectStart":0,"requestStart":313.2000000476837,"responseEnd":331.39999997615814,"responseStart":330.60000002384186,"secureConnectionStart":276.5},{"duration":60.60000002384186,"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":276.7000000476837,"connectEnd":276.7000000476837,"connectStart":276.7000000476837,"domainLookupEnd":276.7000000476837,"domainLookupStart":276.7000000476837,"fetchStart":276.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":314.8000000715256,"responseEnd":337.3000000715256,"responseStart":336.5,"secureConnectionStart":276.7000000476837},{"duration":37.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":276.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":276.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":314.39999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":101.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":277.10000002384186,"connectEnd":277.10000002384186,"connectStart":277.10000002384186,"domainLookupEnd":277.10000002384186,"domainLookupStart":277.10000002384186,"fetchStart":277.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":315.60000002384186,"responseEnd":378.2000000476837,"responseStart":377.2000000476837,"secureConnectionStart":277.10000002384186},{"duration":37.60000002384186,"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":277.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":277.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":314.8000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":63.300000071525574,"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":277.39999997615814,"connectEnd":277.39999997615814,"connectStart":277.39999997615814,"domainLookupEnd":277.39999997615814,"domainLookupStart":277.39999997615814,"fetchStart":277.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":316.8000000715256,"responseEnd":340.7000000476837,"responseStart":339.39999997615814,"secureConnectionStart":277.39999997615814},{"duration":284.59999990463257,"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":286.8000000715256,"connectEnd":286.8000000715256,"connectStart":286.8000000715256,"domainLookupEnd":286.8000000715256,"domainLookupStart":286.8000000715256,"fetchStart":286.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":415.5,"responseEnd":571.3999999761581,"responseStart":564.3000000715256,"secureConnectionStart":286.8000000715256},{"duration":285.39999997615814,"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":289,"connectEnd":289,"connectStart":289,"domainLookupEnd":289,"domainLookupStart":289,"fetchStart":289,"redirectEnd":0,"redirectStart":0,"requestStart":515.7000000476837,"responseEnd":574.3999999761581,"responseStart":570.3999999761581,"secureConnectionStart":289},{"duration":177.80000007152557,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":549.8999999761581,"connectEnd":549.8999999761581,"connectStart":549.8999999761581,"domainLookupEnd":549.8999999761581,"domainLookupStart":549.8999999761581,"fetchStart":549.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":689.3999999761581,"responseEnd":727.7000000476837,"responseStart":726.7000000476837,"secureConnectionStart":549.8999999761581},{"duration":125.79999995231628,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":774.1000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":774.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":899.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":94,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":795.6000000238419,"connectEnd":795.6000000238419,"connectStart":795.6000000238419,"domainLookupEnd":795.6000000238419,"domainLookupStart":795.6000000238419,"fetchStart":795.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":855.8000000715256,"responseEnd":889.6000000238419,"responseStart":888.6000000238419,"secureConnectionStart":795.6000000238419}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":100,"responseStart":268,"responseEnd":289,"domLoading":272,"domInteractive":927,"domContentLoadedEventStart":927,"domContentLoadedEventEnd":972,"domComplete":1360,"loadEventStart":1360,"loadEventEnd":1361,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":901.8999999761581},{"name":"bigPipe.sidebar-id.end","time":902.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":902.8999999761581},{"name":"bigPipe.activity-panel-pipe-id.end","time":904.3999999761581},{"name":"activityTabFullyLoaded","time":989.7000000476837}],"measures":[],"correlationId":"40acfff01494e9","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":101,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Here's the results of --print-defaults, as recommend by the bug reporting guidelines.
c:\Program Files\MariaDB 10.2\bin>mysqld --print-defaults
mysqld would have been started with the following arguments:
--datadir=C:/Program Files/MariaDB 10.2/data --port=3333 --sql_mode=STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION --default_storage_engine=innodb --innodb_buffer_pool_size=3070M --innodb_log_file_size=50M --feedback=ON