(PARTITION p20220220 VALUES LESS THAN (1645398000) ENGINE = MyISAM,
PARTITION p20220504 VALUES LESS THAN (1651701600) ENGINE = MyISAM,
PARTITION p20220505` VALUES LESS THAN (1651788000) ENGINE = MyISAM,
...
PARTITION `pDEFAULT` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
After restoring a snapshot of MariaDB 10.3 datadir upgrade mariadb and system tables to 10.6
Do a repair table
And run following query
ALTER TABLE DATA_V3.EDA_SITE_RESULT_REAL_TIME REORGANIZE PARTITION pDEFAULT INTO ( PARTITION p20220515 VALUES LESS THAN ( UNIX_TIMESTAMP( '2022-05-16')), PARTITION pDEFAULT VALUES LESS THAN MAXVALUE)
Works after an alter table on InnoDB
Works also if alter back into MyISAM.
Works also if - starting from the snapshot - alter table engine=MyISAM
In all cases :
MariaDB [DATA_V3]> show table status like 'EDA_SITE_RESULT_REAL_TIME' \G
Name: EDA_SITE_RESULT_REAL_TIME
Engine: MyISAM
Version: 10
Row_format: Fixed
Collation: utf8mb3_general_ci
Checksum: NULL
Create_options: partitioned
Temporary: N
Richard DEMONGEOT
added a comment - - edited Works after an alter table on InnoDB
Works also if alter back into MyISAM.
Works also if - starting from the snapshot - alter table engine=MyISAM
In all cases :
MariaDB [DATA_V3] > show table status like 'EDA_SITE_RESULT_REAL_TIME' \G
Name: EDA_SITE_RESULT_REAL_TIME
Engine: MyISAM
Version: 10
Row_format: Fixed
Collation: utf8mb3_general_ci
Checksum: NULL
Create_options: partitioned
Temporary: N
TABLE_COMMENT: Got error 190 "Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You may have retry " from storage engine MyISAM
MAX_INDEX_LENGTH: NULL
TEMPORARY: NULL
Edit : Current 10.3 (corrupted?) empty tables/partitions are uploaded into file table-sample.tgz.
Last created partition : p20220515
Next day should be :
ALTER TABLE DATA_V3.EDA_SITE_RESULT_REAL_TIME REORGANIZE PARTITION pDEFAULT INTO ( PARTITION p20220516 VALUES LESS THAN ( UNIX_TIMESTAMP( '2022-05-17')), PARTITION pDEFAULT VALUES LESS THAN MAXVALUE)
Richard DEMONGEOT
added a comment - - edited Even with truncated tables it fails. (empty but comes from an old version)
Before to alter table :
MariaDB [information_schema]> select * from TABLES WHERE TABLE_SCHEMA='DATA_V3' \G
*************************** 1. row ***************************
TABLE_CATALOG: def
TABLE_SCHEMA: DATA_V3
TABLE_NAME: EDA_SITE_RESULT_REAL_TIME
TABLE_TYPE: BASE TABLE
ENGINE: MyISAM
VERSION: 10
ROW_FORMAT: Fixed
TABLE_ROWS: 0
AVG_ROW_LENGTH: 0
DATA_LENGTH: 0
MAX_DATA_LENGTH: 0
INDEX_LENGTH: 13312
DATA_FREE: 0
AUTO_INCREMENT: 1
CREATE_TIME: 2022-02-18 01:21:02
UPDATE_TIME: 2022-05-12 12:36:38
CHECK_TIME: 2022-05-12 01:06:03
TABLE_COLLATION: utf8mb3_general_ci
CHECKSUM: NULL
CREATE_OPTIONS: partitioned
TABLE_COMMENT:
MAX_INDEX_LENGTH: 0
TEMPORARY: N
After the add partition
TABLE_CATALOG: def
TABLE_SCHEMA: DATA_V3
TABLE_NAME: EDA_SITE_RESULT_REAL_TIME
TABLE_TYPE: BASE TABLE
ENGINE: NULL
VERSION: NULL
ROW_FORMAT: NULL
TABLE_ROWS: NULL
AVG_ROW_LENGTH: NULL
DATA_LENGTH: NULL
MAX_DATA_LENGTH: NULL
INDEX_LENGTH: NULL
DATA_FREE: NULL
AUTO_INCREMENT: NULL
CREATE_TIME: NULL
UPDATE_TIME: NULL
CHECK_TIME: NULL
TABLE_COLLATION: NULL
CHECKSUM: NULL
CREATE_OPTIONS: NULL
TABLE_COMMENT: Got error 190 "Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You may have retry " from storage engine MyISAM
MAX_INDEX_LENGTH: NULL
TEMPORARY: NULL
Edit : Current 10.3 (corrupted?) empty tables/partitions are uploaded into file table-sample.tgz.
Last created partition : p20220515
Next day should be :
ALTER TABLE DATA_V3.EDA_SITE_RESULT_REAL_TIME REORGANIZE PARTITION pDEFAULT INTO ( PARTITION p20220516 VALUES LESS THAN ( UNIX_TIMESTAMP( '2022-05-17')), PARTITION pDEFAULT VALUES LESS THAN MAXVALUE)
CREATETABLE t (ts timestamp, KEY (ts)) ENGINE=MyISAM
PARTITION BY RANGE (unix_timestamp(ts)) (
PARTITION p1 VALUES LESS THAN (1645398000),
PARTITION pn VALUES LESS THAN MAXVALUE
);
SETGLOBAL mysql56_temporal_format=ON;
FLUSH TABLES;
ALTERTABLE t DROP PARTITION p1;
CHECKTABLE t;
# Cleanup
DROPTABLE t;
10.4 8911823f
ALTERTABLE t DROP PARTITION p1;
CHECKTABLE t;
Table Op Msg_type Msg_text
test.t check Error Got error 190 "Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You have to dump an"from storage engine MyISAM
test.t check error Corrupt
DROPTABLE t;
Elena Stepanova
added a comment -
--source include/have_partition.inc
SET GLOBAL mysql56_temporal_format= OFF ;
CREATE TABLE t (ts timestamp , KEY (ts)) ENGINE=MyISAM
PARTITION BY RANGE (unix_timestamp(ts)) (
PARTITION p1 VALUES LESS THAN (1645398000),
PARTITION pn VALUES LESS THAN MAXVALUE
);
SET GLOBAL mysql56_temporal_format= ON ;
FLUSH TABLES;
ALTER TABLE t DROP PARTITION p1;
CHECK TABLE t;
# Cleanup
DROP TABLE t;
10.4 8911823f
ALTER TABLE t DROP PARTITION p1;
CHECK TABLE t;
Table Op Msg_type Msg_text
test.t check Error Got error 190 "Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You have to dump an" from storage engine MyISAM
test.t check error Corrupt
DROP TABLE t;
Alexander Barkov
added a comment - - edited Hello serg , can you please review a patch:
https://github.com/MariaDB/server/commit/b2800c06b22832b976cc05c142d00109ddaa1ba7
?
Thanks!
People
Alexander Barkov
VAROQUI Stephane
Votes:
0Vote for this issue
Watchers:
7Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":983.6999998092651,"ttfb":201.5,"pageVisibility":"visible","entityId":110903,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"d8f54234-d557-4606-950d-25c9b4bd1c33","navigationType":0,"readyForUser":1068,"redirectCount":0,"resourceLoadedEnd":1352.5,"resourceLoadedStart":207,"resourceTiming":[{"duration":220.89999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":207,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":207,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":427.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":221,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":207.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":207.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":428.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":229.79999923706055,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":207.5,"connectEnd":207.5,"connectStart":207.5,"domainLookupEnd":207.5,"domainLookupStart":207.5,"fetchStart":207.5,"redirectEnd":0,"redirectStart":0,"requestStart":207.5,"responseEnd":437.29999923706055,"responseStart":437.29999923706055,"secureConnectionStart":207.5},{"duration":284.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":207.5999994277954,"connectEnd":207.5999994277954,"connectStart":207.5999994277954,"domainLookupEnd":207.5999994277954,"domainLookupStart":207.5999994277954,"fetchStart":207.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":207.5999994277954,"responseEnd":492.3999996185303,"responseStart":492.3999996185303,"secureConnectionStart":207.5999994277954},{"duration":289.1000003814697,"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":207.79999923706055,"connectEnd":207.79999923706055,"connectStart":207.79999923706055,"domainLookupEnd":207.79999923706055,"domainLookupStart":207.79999923706055,"fetchStart":207.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":207.79999923706055,"responseEnd":496.8999996185303,"responseStart":496.8999996185303,"secureConnectionStart":207.79999923706055},{"duration":289.3999996185303,"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":208,"connectEnd":208,"connectStart":208,"domainLookupEnd":208,"domainLookupStart":208,"fetchStart":208,"redirectEnd":0,"redirectStart":0,"requestStart":208,"responseEnd":497.3999996185303,"responseStart":497.3999996185303,"secureConnectionStart":208},{"duration":289.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":208.19999980926514,"connectEnd":208.19999980926514,"connectStart":208.19999980926514,"domainLookupEnd":208.19999980926514,"domainLookupStart":208.19999980926514,"fetchStart":208.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":208.19999980926514,"responseEnd":497.69999980926514,"responseStart":497.69999980926514,"secureConnectionStart":208.19999980926514},{"duration":376.70000076293945,"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":208.29999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":208.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":585,"responseStart":0,"secureConnectionStart":0},{"duration":289.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":208.5,"connectEnd":208.5,"connectStart":208.5,"domainLookupEnd":208.5,"domainLookupStart":208.5,"fetchStart":208.5,"redirectEnd":0,"redirectStart":0,"requestStart":208.5,"responseEnd":498.19999980926514,"responseStart":498.19999980926514,"secureConnectionStart":208.5},{"duration":376.5,"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":208.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":208.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":585.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":289.9000005722046,"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":208.79999923706055,"connectEnd":208.79999923706055,"connectStart":208.79999923706055,"domainLookupEnd":208.79999923706055,"domainLookupStart":208.79999923706055,"fetchStart":208.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":208.79999923706055,"responseEnd":498.69999980926514,"responseStart":498.69999980926514,"secureConnectionStart":208.79999923706055},{"duration":524.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":215.39999961853027,"connectEnd":215.39999961853027,"connectStart":215.39999961853027,"domainLookupEnd":215.39999961853027,"domainLookupStart":215.39999961853027,"fetchStart":215.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":215.39999961853027,"responseEnd":740.1999998092651,"responseStart":740.1999998092651,"secureConnectionStart":215.39999961853027},{"duration":1134.0999994277954,"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":215.5,"connectEnd":215.5,"connectStart":215.5,"domainLookupEnd":215.5,"domainLookupStart":215.5,"fetchStart":215.5,"redirectEnd":0,"redirectStart":0,"requestStart":215.5,"responseEnd":1349.5999994277954,"responseStart":1349.5999994277954,"secureConnectionStart":215.5},{"duration":120.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":619.7999992370605,"connectEnd":619.7999992370605,"connectStart":619.7999992370605,"domainLookupEnd":619.7999992370605,"domainLookupStart":619.7999992370605,"fetchStart":619.7999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":619.7999992370605,"responseEnd":740.5999994277954,"responseStart":740.5999994277954,"secureConnectionStart":619.7999992370605},{"duration":472,"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","startTime":880.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":880.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1352.5,"responseStart":0,"secureConnectionStart":0},{"duration":520.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":881.3999996185303,"connectEnd":881.3999996185303,"connectStart":881.3999996185303,"domainLookupEnd":881.3999996185303,"domainLookupStart":881.3999996185303,"fetchStart":881.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":881.3999996185303,"responseEnd":1401.6999998092651,"responseStart":1401.6999998092651,"secureConnectionStart":881.3999996185303},{"duration":523.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/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.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":881.7999992370605,"connectEnd":881.7999992370605,"connectStart":881.7999992370605,"domainLookupEnd":881.7999992370605,"domainLookupStart":881.7999992370605,"fetchStart":881.7999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":881.7999992370605,"responseEnd":1405.5999994277954,"responseStart":1405.5999994277954,"secureConnectionStart":881.7999992370605},{"duration":472.19999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":975.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":975.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1447.3999996185303,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":32,"responseStart":201,"responseEnd":211,"domLoading":205,"domInteractive":1390,"domContentLoadedEventStart":1390,"domContentLoadedEventEnd":1441,"domComplete":1734,"loadEventStart":1734,"loadEventEnd":1735,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1356},{"name":"bigPipe.sidebar-id.end","time":1356.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":1356.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1360.8999996185303},{"name":"activityTabFullyLoaded","time":1460.8999996185303}],"measures":[],"correlationId":"3ee23bb3fb7132","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":105,"dbReadsTimeInMs":12,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Works after an alter table on InnoDB
Works also if alter back into MyISAM.
Works also if - starting from the snapshot - alter table engine=MyISAM
In all cases :
MariaDB [DATA_V3]> show table status like 'EDA_SITE_RESULT_REAL_TIME' \G
Name: EDA_SITE_RESULT_REAL_TIME
Engine: MyISAM
Version: 10
Row_format: Fixed
Collation: utf8mb3_general_ci
Checksum: NULL
Create_options: partitioned
Temporary: N