-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
MDEV-36017 Alter table aborts when temporary directory is full #3903
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,25 @@ | ||
# | ||
# MDEV-36017 Alter table aborts when temporary | ||
# directory is full | ||
# | ||
CREATE TABLE t1(f1 INT NOT NULL, f2 CHAR(100), | ||
f3 CHAR(100))ENGINE=InnoDB; | ||
INSERT INTO t1 SELECT seq, 'a', 'b' FROM seq_1_to_4096; | ||
SET DEBUG_SYNC="inplace_after_index_build SIGNAL dml_start WAIT_FOR dml_commit"; | ||
ALTER TABLE t1 ADD KEY(f1), ADD INDEX(f3(10)); | ||
connect con1,localhost,root,,,; | ||
SET DEBUG_SYNC="now WAIT_FOR dml_start"; | ||
BEGIN; | ||
INSERT INTO t1 SELECT * FROM t1; | ||
SET STATEMENT DEBUG_DBUG="+d,os_file_write_fail" FOR COMMIT; | ||
SET DEBUG_SYNC="now SIGNAL dml_commit"; | ||
connection default; | ||
ERROR HY000: Temporary file write failure | ||
disconnect con1; | ||
CHECK TABLE t1; | ||
Table Op Msg_type Msg_text | ||
test.t1 check status OK | ||
DROP TABLE t1; | ||
SET STATEMENT DEBUG_DBUG="+d,ddl_log_write_fail" FOR | ||
CREATE TABLE t1(f1 INT NOT NULL)ENGINE=InnoDB; | ||
DROP TABLE t1; |
This file contains hidden or 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 @@ | ||
--innodb_sort_buffer_size=64k |
This file contains hidden or 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,30 @@ | ||
--source include/have_innodb.inc | ||
--source include/have_sequence.inc | ||
--source include/have_debug.inc | ||
--echo # | ||
--echo # MDEV-36017 Alter table aborts when temporary | ||
--echo # directory is full | ||
--echo # | ||
CREATE TABLE t1(f1 INT NOT NULL, f2 CHAR(100), | ||
f3 CHAR(100))ENGINE=InnoDB; | ||
INSERT INTO t1 SELECT seq, 'a', 'b' FROM seq_1_to_4096; | ||
SET DEBUG_SYNC="inplace_after_index_build SIGNAL dml_start WAIT_FOR dml_commit"; | ||
SEND ALTER TABLE t1 ADD KEY(f1), ADD INDEX(f3(10)); | ||
|
||
connect(con1,localhost,root,,,); | ||
SET DEBUG_SYNC="now WAIT_FOR dml_start"; | ||
BEGIN; | ||
INSERT INTO t1 SELECT * FROM t1; | ||
SET STATEMENT DEBUG_DBUG="+d,os_file_write_fail" FOR COMMIT; | ||
SET DEBUG_SYNC="now SIGNAL dml_commit"; | ||
|
||
connection default; | ||
--error ER_TEMP_FILE_WRITE_FAILURE | ||
reap; | ||
disconnect con1; | ||
CHECK TABLE t1; | ||
DROP TABLE t1; | ||
|
||
SET STATEMENT DEBUG_DBUG="+d,ddl_log_write_fail" FOR | ||
CREATE TABLE t1(f1 INT NOT NULL)ENGINE=InnoDB; | ||
DROP TABLE t1; |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.