[MDEV-15221] Check free disk space before running DDL that creates table copies Created: 2018-02-06  Updated: 2018-05-30

Status: Open
Project: MariaDB Server
Component/s: None
Fix Version/s: None

Type: Task Priority: Minor
Reporter: Hartmut Holzgraefe Assignee: Unassigned
Resolution: Unresolved Votes: 8
Labels: None


 Description   

Feature request:

Before starting an ALTER TABLE or OPTIMIZE TABLE that may create a temporary copy of the table: check up front that sufficient disk space is available for the operation to succeed.

For ALGORITHM=COPY just the free space of the datadir needs to be checked, but for ALGORITHM=INPLACE the tmpdir / innodb_tmpdir also needs to be taken into account, and the fact that with INPLACE temporary storage requirements may actually be around four times the tables size, and not just double as with COPY.

By checking this up front bad effects of running out of disk space on ALTER or OPTIMIZE could be prevented easily.


Generated at Thu Feb 08 08:19:36 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.