When my SpringBoot application try to update a table schema via JPA, the mariadb instance preallocated a very huge size of file(almost 100GB, at /rdsdbdata/tmp/#sql_4c44_0.MAI),then the server storage become full immediately and cause the db instance down. The log shows JPA just add 2 columns to that table(data type varchar(255)), and the table size is less than 5MB with only 5000 records.
The maridb server is AWS RDS, Mariadb coummity edition, 10.3.8, engine InnoDB
As I review the AWS CloudWatch log, the first error is
[ERROR] InnoDB: preallocating 103934853120 bytes for file ./mydbname/users.ibd failed with error 28
then the error
Disk is full writing '/rdsdbdata/log/binlog/mysql-bin-changelog.~rec~' (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)
and
[ERROR] mysqld: Disk full (/rdsdbdata/tmp/#sql_4c44_0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Is there anyone else met that situation before or have any idea about it.