Initially reported on the mailing list: https://lists.launchpad.net/maria-discuss/msg02495.html .
Stage: 1 of 72 'altering table' 350% of stage done.
|
Reproducible as described.
Dataset: salaries table in the employees sample database.
Statements that exhibit the incorrect behaviour:
ALTER TABLE salaries ENGINE = Innodb;
|
ALTER TABLE salaries ADD id INT NULL;
|
ALTER TABLE salaries DROP id;
|
ALTER TABLE salaries ROW_FORMAT = COMPRESSED;
|
I also saw the mentioned 350% and some other values, e.g.
MariaDB [employees]> ALTER TABLE salaries ADD id INT NULL;
|
Stage: 1 of 85 'altering table' 200% of stage done
|
MyISAM looks reasonable (2 stages, below 100% progress).
Not reproducible on 5.5.
10.0 has a different problem – progress for InnoDB tables is not reported at all.
{"report":{"fcp":911.3000000715256,"ttfb":319.7000000476837,"pageVisibility":"visible","entityId":51394,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"78932641-98bf-401a-b3aa-061a279deb5d","navigationType":0,"readyForUser":995.7000000476837,"redirectCount":0,"resourceLoadedEnd":636,"resourceLoadedStart":325.5,"resourceTiming":[{"duration":9.899999976158142,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":325.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":325.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":335.39999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":10,"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":325.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":325.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":335.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":194.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":325.8000000715256,"connectEnd":325.8000000715256,"connectStart":325.8000000715256,"domainLookupEnd":325.8000000715256,"domainLookupStart":325.8000000715256,"fetchStart":325.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":345.3000000715256,"responseEnd":520.7000000476837,"responseStart":371.10000002384186,"secureConnectionStart":325.8000000715256},{"duration":310,"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":326,"connectEnd":326,"connectStart":326,"domainLookupEnd":326,"domainLookupStart":326,"fetchStart":326,"redirectEnd":0,"redirectStart":0,"requestStart":346,"responseEnd":636,"responseStart":371.8000000715256,"secureConnectionStart":326},{"duration":54,"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":326.3000000715256,"connectEnd":326.3000000715256,"connectStart":326.3000000715256,"domainLookupEnd":326.3000000715256,"domainLookupStart":326.3000000715256,"fetchStart":326.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":346.60000002384186,"responseEnd":380.3000000715256,"responseStart":374.10000002384186,"secureConnectionStart":326.3000000715256},{"duration":54.200000047683716,"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":326.39999997615814,"connectEnd":326.39999997615814,"connectStart":326.39999997615814,"domainLookupEnd":326.39999997615814,"domainLookupStart":326.39999997615814,"fetchStart":326.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":346.60000002384186,"responseEnd":380.60000002384186,"responseStart":375.3000000715256,"secureConnectionStart":326.39999997615814},{"duration":54.10000002384186,"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":326.7000000476837,"connectEnd":326.7000000476837,"connectStart":326.7000000476837,"domainLookupEnd":326.7000000476837,"domainLookupStart":326.7000000476837,"fetchStart":326.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":348.60000002384186,"responseEnd":380.8000000715256,"responseStart":376.60000002384186,"secureConnectionStart":326.7000000476837},{"duration":16,"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":326.8000000715256,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":326.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":342.8000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":57.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":326.89999997615814,"connectEnd":326.89999997615814,"connectStart":326.89999997615814,"domainLookupEnd":326.89999997615814,"domainLookupStart":326.89999997615814,"fetchStart":326.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":348.8000000715256,"responseEnd":384.5,"responseStart":378.5,"secureConnectionStart":326.89999997615814},{"duration":16.100000023841858,"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":327.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":327.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":343.3000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":57.59999990463257,"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":327.3000000715256,"connectEnd":327.3000000715256,"connectStart":327.3000000715256,"domainLookupEnd":327.3000000715256,"domainLookupStart":327.3000000715256,"fetchStart":327.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":349,"responseEnd":384.89999997615814,"responseStart":381.2000000476837,"secureConnectionStart":327.3000000715256},{"duration":278.39999997615814,"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":328.2000000476837,"connectEnd":328.2000000476837,"connectStart":328.2000000476837,"domainLookupEnd":328.2000000476837,"domainLookupStart":328.2000000476837,"fetchStart":328.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":361.10000002384186,"responseEnd":606.6000000238419,"responseStart":598.2000000476837,"secureConnectionStart":328.2000000476837},{"duration":274.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":332.7000000476837,"connectEnd":332.7000000476837,"connectStart":332.7000000476837,"domainLookupEnd":332.7000000476837,"domainLookupStart":332.7000000476837,"fetchStart":332.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":365.8000000715256,"responseEnd":607.1000000238419,"responseStart":600.1000000238419,"secureConnectionStart":332.7000000476837},{"duration":140.89999997615814,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":667.2000000476837,"connectEnd":667.2000000476837,"connectStart":667.2000000476837,"domainLookupEnd":667.2000000476837,"domainLookupStart":667.2000000476837,"fetchStart":667.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":772.8000000715256,"responseEnd":808.1000000238419,"responseStart":806.8000000715256,"secureConnectionStart":667.2000000476837},{"duration":191.39999997615814,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":903.3000000715256,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":903.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1094.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":193.30000007152557,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":909.3999999761581,"connectEnd":909.3999999761581,"connectStart":909.3999999761581,"domainLookupEnd":909.3999999761581,"domainLookupStart":909.3999999761581,"fetchStart":909.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":1064.7000000476837,"responseEnd":1102.7000000476837,"responseStart":1101.8000000715256,"secureConnectionStart":909.3999999761581}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":129,"responseStart":320,"responseEnd":328,"domLoading":323,"domInteractive":1103,"domContentLoadedEventStart":1103,"domContentLoadedEventEnd":1159,"domComplete":1467,"loadEventStart":1467,"loadEventEnd":1468,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1069.8999999761581},{"name":"bigPipe.sidebar-id.end","time":1070.6000000238419},{"name":"bigPipe.activity-panel-pipe-id.start","time":1070.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1074.6000000238419},{"name":"activityTabFullyLoaded","time":1180.2000000476837}],"measures":[],"correlationId":"11f33d8e4cba7e","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":107,"dbReadsTimeInMs":12,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
After
MDEV-8179it showed on 10.0.20 today:optimize table sazky;
Stage: 1 of 149 'altering table' 1.33% of stage done
Stage: 1 of 149 'altering table' 15.8% of stage done
Stage: 1 of 149 'altering table' 100% of stage done
-- until here tmp file has stable size of 320K, and only after getting to 100% it started to grow by some MB per second
Stage: 1 of 149 'altering table' 350% of stage done
Stage: 1 of 149 'altering table' 800% of stage done
Stage: 1 of 14 'altering table' 14.3% of stage done
Stage: 1 of 10 'altering table' 20% of stage done
Stage: 1 of 14 'altering table' 14.3% of stage done
Stage: 1 of 15 'altering table' 12.5% of stage done
Stage: 1 of 11 'altering table' 16.7% of stage done
Stage: 1 of 9 'altering table' 20% of stage done
Stage: 1 of 12 'altering table' 16.7% of stage done
Stage: 1 of 18 'altering table' 11.1% of stage done
Stage: 1 of 8 'altering table' 25% of stage done
+----------------+----------+----------+-------------------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+----------------+----------+----------+-------------------------------------------------------------------+
| vic_main.sazky | optimize | note | Table does not support optimize, doing recreate + analyze instead |
| vic_main.sazky | optimize | status | OK |
+----------------+----------+----------+-------------------------------------------------------------------+
2 rows in set (3 min 1.22 sec)
show table status like 'sazky'\G
*************************** 1. row ***************************
Name: sazky
Engine: InnoDB
Version: 10
Row_format: Compact
Rows: 1138155
Avg_row_length: 153
Data_length: 174800896
Max_data_length: 0
Index_length: 246022144
Data_free: 0
...