[MDEV-8385] Roll back a transaction that fills up the tmp directory and don't crash the mysqld Created: 2015-06-26  Updated: 2019-05-01  Resolved: 2019-05-01

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - Aria
Affects Version/s: None
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Stoykov (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by MDEV-8325 Server crash in pagecache_fwrite afte... Confirmed

 Description   

It will be good if MariaDB could detect if a running query fills up the tmp directory and if there is no free space left for some time (configurable option ? ) to roll back /cancel the transaction and to clear the created internal temp tables /Aria/ on the disk.

Example on mysqld: Retry in 60 secs. to roll back or to cancel the query that created the temp table on the disk but to clean the temp tables before that :

150618 2:29:24 [Warning] mysqld: Retry in 60 secs. Message reprinted in 600 secs
150618 2:30:24 [Warning] mysqld: Disk is full writing '/mysql_tmp/#sql_2941_1.MAD' (Errcode: 28 "No space left on device"). Waiting for someone to free space... (Expect up to 60 secs delay for server to continue after freeing disk space)
150618 2:30:24 [Warning]  Message reprinted in 600 secs
150618 2:30:24 [Warning] mysqld: Disk is full writing '/mysql_tmp/#sql_2941_1.MAD' (Errcode: 28 "No space left on device"). Waiting for someone to free space... (Expect up to 60 secs delay for server to continue after freeing disk space)
150618 2:30:24 [Warning] mysqld: Retry in 60 secs. Message reprinted in 600 secs
150618 2:31:24 [ERROR] mysqld got signal 11 ;



 Comments   
Comment by Elena Stepanova [ 2019-05-01 ]

MDEV-8325 appears to be pretty much the same, let's track it there.

Generated at Thu Feb 08 07:26:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.