[MDEV-13198] ALTER TABLE `text` ENGINE = InnoDB; does not free unused space Created: 2017-06-28 Updated: 2017-07-03 Resolved: 2017-07-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.2.6 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Frank Sagurna | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu 16.04 packages from mariadb repository |
||
| Description |
|
In mariadb 10.1.23 running following command did reclaim unused space (defragment by rebuild) in ibd file (one ibd per table), in 10.2.6 it does not. ALTER TABLE `text` ENGINE = InnoDB; 10.1.23:
10.2.6:
|
| Comments |
| Comment by Elena Stepanova [ 2017-07-02 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Works for me:
Please paste SHOW CREATE TABLE for your table and indicate somehow how much data was removed (how much space should be reclaimed), and how it does not happen. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Frank Sagurna [ 2017-07-03 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I tested it again, and it seems like the table size for the same table is just bigger in 10.2.6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Frank Sagurna [ 2017-07-03 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
But anyway some more info: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-07-03 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I'll close it for now, but if you find out it's reproducible after all, you can comment with more information and we will re-open it. |