docker run -d -P --name par1 --env MARIADB_ROOT_PASSWORD=Password123! mariadb:latest
mysql -h127.0.0.1 -uroot -pPassword123! -P32768
create database if not exists d1 ;
use d1;
drop table if exists t1;
CREATE TABLE t1par (
f1 datetime ,
f2 VARCHAR(2) ,
f3 VARCHAR(200) NOT NULL ,
f4 VARCHAR(100) charset utf8
)
/*!50100 PARTITION BY RANGE COLUMNS(f2) (PARTITION p_01 VALUES LESS THAN ('02') ENGINE = InnoDB, PARTITION p_31 VALUES LESS THAN (MAXVALUE) ENGINE = InnoDB ) */;
CREATE TABLE t1nopar (
f1 datetime ,
f2 VARCHAR(2) ,
f3 VARCHAR(200) NOT NULL ,
f4 VARCHAR(100) charset utf8
);
So we have the same table as partitoned and non partitioned table.
We want to alter column f3(200) from not NULL to NULL,
which is not allowed for algorithm "NOCOPY".
However, previously the same function was called with the create flag, to create a partition with the same name successfully. So the question is why does the delete fail? To be continued.
Yuchen Pei
added a comment - It's a bit strange. The failure happens in the misleadingly named ha_partition::create_partitioning_metadata() , when it tries to delete a partition.
int ha_partition::create_partitioning_metadata( const char *path,
const char *old_path,
chf_create_flags action_flag)
{
# [... 16 lines elided]
if ((action_flag == CHF_DELETE_FLAG &&
mysql_file_delete(key_file_ha_partition_par, name, MYF(MY_WME))) ||
However, previously the same function was called with the create flag, to create a partition with the same name successfully. So the question is why does the delete fail? To be continued.
People
Alexey Botchkov
Richard Stracke
Votes:
0Vote for this issue
Watchers:
4Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1181.5,"ttfb":391.7999997138977,"pageVisibility":"visible","entityId":131896,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"24ea934d-219a-4235-956d-87809cbec9a5","navigationType":0,"readyForUser":1268.3999996185303,"redirectCount":0,"resourceLoadedEnd":1302.8999996185303,"resourceLoadedStart":397,"resourceTiming":[{"duration":201.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":397,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":397,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":598.5,"responseStart":0,"secureConnectionStart":0},{"duration":201.59999990463257,"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":397.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":397.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":598.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":257.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":397.5,"connectEnd":397.5,"connectStart":397.5,"domainLookupEnd":397.5,"domainLookupStart":397.5,"fetchStart":397.5,"redirectEnd":0,"redirectStart":0,"requestStart":397.5,"responseEnd":655,"responseStart":655,"secureConnectionStart":397.5},{"duration":302.7999997138977,"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":397.59999990463257,"connectEnd":397.59999990463257,"connectStart":397.59999990463257,"domainLookupEnd":397.59999990463257,"domainLookupStart":397.59999990463257,"fetchStart":397.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":397.59999990463257,"responseEnd":700.3999996185303,"responseStart":700.3999996185303,"secureConnectionStart":397.59999990463257},{"duration":306.40000009536743,"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":397.7999997138977,"connectEnd":397.7999997138977,"connectStart":397.7999997138977,"domainLookupEnd":397.7999997138977,"domainLookupStart":397.7999997138977,"fetchStart":397.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":397.7999997138977,"responseEnd":704.1999998092651,"responseStart":704.1999998092651,"secureConnectionStart":397.7999997138977},{"duration":306.69999980926514,"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":398,"connectEnd":398,"connectStart":398,"domainLookupEnd":398,"domainLookupStart":398,"fetchStart":398,"redirectEnd":0,"redirectStart":0,"requestStart":398,"responseEnd":704.6999998092651,"responseStart":704.6999998092651,"secureConnectionStart":398},{"duration":306.90000009536743,"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":398.09999990463257,"connectEnd":398.09999990463257,"connectStart":398.09999990463257,"domainLookupEnd":398.09999990463257,"domainLookupStart":398.09999990463257,"fetchStart":398.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":398.09999990463257,"responseEnd":705,"responseStart":705,"secureConnectionStart":398.09999990463257},{"duration":400.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":398.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":398.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":799.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":306.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":398.59999990463257,"connectEnd":398.59999990463257,"connectStart":398.59999990463257,"domainLookupEnd":398.59999990463257,"domainLookupStart":398.59999990463257,"fetchStart":398.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":398.59999990463257,"responseEnd":705.5,"responseStart":705.5,"secureConnectionStart":398.59999990463257},{"duration":400.69999980926514,"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":398.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":398.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":799.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":307.2000002861023,"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":398.8999996185303,"connectEnd":398.8999996185303,"connectStart":398.8999996185303,"domainLookupEnd":398.8999996185303,"domainLookupStart":398.8999996185303,"fetchStart":398.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":398.8999996185303,"responseEnd":706.0999999046326,"responseStart":706.0999999046326,"secureConnectionStart":398.8999996185303},{"duration":491.90000009536743,"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":404.59999990463257,"connectEnd":404.59999990463257,"connectStart":404.59999990463257,"domainLookupEnd":404.59999990463257,"domainLookupStart":404.59999990463257,"fetchStart":404.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":404.59999990463257,"responseEnd":896.5,"responseStart":896.5,"secureConnectionStart":404.59999990463257},{"duration":875.0999999046326,"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":406.59999990463257,"connectEnd":406.59999990463257,"connectStart":406.59999990463257,"domainLookupEnd":406.59999990463257,"domainLookupStart":406.59999990463257,"fetchStart":406.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":406.59999990463257,"responseEnd":1281.6999998092651,"responseStart":1281.6999998092651,"secureConnectionStart":406.59999990463257},{"duration":85.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":811.5,"connectEnd":811.5,"connectStart":811.5,"domainLookupEnd":811.5,"domainLookupStart":811.5,"fetchStart":811.5,"redirectEnd":0,"redirectStart":0,"requestStart":811.5,"responseEnd":897,"responseStart":897,"secureConnectionStart":811.5},{"duration":228.59999990463257,"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":1074.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1074.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1302.8999996185303,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":225,"responseStart":392,"responseEnd":406,"domLoading":395,"domInteractive":1327,"domContentLoadedEventStart":1327,"domContentLoadedEventEnd":1371,"domComplete":1569,"loadEventStart":1569,"loadEventEnd":1569,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1315.5},{"name":"bigPipe.sidebar-id.end","time":1316.2999997138977},{"name":"bigPipe.activity-panel-pipe-id.start","time":1316.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1317.6999998092651},{"name":"activityTabFullyLoaded","time":1388.5999999046326}],"measures":[],"correlationId":"dc1cd141998bca","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":102,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
It's a bit strange. The failure happens in the misleadingly named ha_partition::create_partitioning_metadata(), when it tries to delete a partition.
chf_create_flags action_flag)
{
# [... 16 lines elided]
mysql_file_delete(key_file_ha_partition_par, name, MYF(MY_WME))) ||
However, previously the same function was called with the create flag, to create a partition with the same name successfully. So the question is why does the delete fail? To be continued.