mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-26 01:02:25 +08:00
Merge pull request #30 from percona/pt-osc-meaningful-errors-1446928
Pt osc meaningful errors 1446928
This commit is contained in:
@@ -433,6 +433,31 @@ $output = output(
|
||||
# clear databases
|
||||
$sb->load_file('master', "$sample/bug-1340728_cleanup.sql");
|
||||
|
||||
|
||||
# #############################################################################
|
||||
# Issue LP 1446928
|
||||
# Avoids an error trapping loop when --alter option contains an invalid
|
||||
# statement.
|
||||
# If this test fails it might lead to "segmentation fault" or "out of memory"
|
||||
# #############################################################################
|
||||
|
||||
$output = output(
|
||||
sub { pt_online_schema_change::main(@args, "$master_dsn,D=sakila,t=actor",
|
||||
'--execute',
|
||||
'--alter-foreign-keys-method=drop_swap',
|
||||
'--alter', "GIBBERISH",
|
||||
'--nocheck-plan',
|
||||
),
|
||||
},
|
||||
stderr => 1,
|
||||
);
|
||||
|
||||
like(
|
||||
$output,
|
||||
qr/Error altering new table/s,
|
||||
"Bug 1446928: Avoid error trapping loop when --alter is invalid",
|
||||
);
|
||||
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
|
||||
Reference in New Issue
Block a user