-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-10508 Mariadb crash on out of disk space during dump import
update info->write_end and info->write_pos together, with no "return on error" in between, otherwise write_end might end up being smaller than write_pos
- Loading branch information
Showing
3 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
call mtr.add_suppression('Error writing file.*errno: 28 '); | ||
create table t1 (a int, b int) engine=memory; | ||
insert t1 select seq, seq+1 from seq_1_to_1000; | ||
set global general_log=0; | ||
set global log_queries_not_using_indexes=1; | ||
set debug_dbug='+d,simulate_file_write_error'; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
select * from t1 where a>10; | ||
set debug_dbug=''; | ||
set global general_log=1; | ||
set global log_queries_not_using_indexes=default; | ||
drop table t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# | ||
# MDEV-10508 Mariadb crash on out of disk space during dump import | ||
# | ||
--source include/have_sequence.inc | ||
--source include/have_debug.inc | ||
|
||
call mtr.add_suppression('Error writing file.*errno: 28 '); | ||
create table t1 (a int, b int) engine=memory; | ||
insert t1 select seq, seq+1 from seq_1_to_1000; | ||
set global general_log=0; | ||
set global log_queries_not_using_indexes=1; | ||
set debug_dbug='+d,simulate_file_write_error'; | ||
--disable_result_log | ||
--let $run= 50 | ||
while ($run) | ||
{ | ||
select * from t1 where a>10; | ||
dec $run; | ||
} | ||
--enable_result_log | ||
set debug_dbug=''; | ||
set global general_log=1; | ||
set global log_queries_not_using_indexes=default; | ||
drop table t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters