Hi. Have next problem on alter table (this problem stopped galera cluster 3 nodes):
# pt-online-schema-change --alter "CHANGE amount amount DECIMAL(12,4) COMMENT 'Сумма платежа'" D=database1,t=invoices --execute
No slaves found. See --recursion-method if host prod-mysql-db-1 has slaves.
Not checking slave lag because no slaves were found and --check-slave-lag was not specified.
Operation, tries, wait:
copy_rows, 10, 0.25
create_triggers, 10, 1
drop_triggers, 10, 1
swap_tables, 10, 1
update_foreign_keys, 10, 1
Altering `database1`.`invoices`...
Creating new table...
Created new table database1._invoices_new OK.
Altering new table...
Altered `database1`.`_invoices_new` OK.
2014-09-11T13:41:21 Creating triggers...
2014-09-11T13:41:21 Created triggers OK.
2014-09-11T13:41:21 Copying approximately 3980093 rows...
Copying rows caused a MySQL error 1265: Data truncated for column 'amount' at row 1654
No more warnings about this MySQL error will be reported. If --statistics was specified, mysql_warning_1265 will list the total count of this MySQL error.
Copying `database1`.`invoices`: 5% 08:11 remain
Copying `database1`.`invoices`: 10% 08:10 remain
Copying `database1`.`invoices`: 16% 07:40 remain
Copying `database1`.`invoices`: 21% 07:15 remain
Copying `database1`.`invoices`: 26% 06:49 remain
Copying `database1`.`invoices`: 31% 06:26 remain
Copying `database1`.`invoices`: 36% 06:02 remain
Copying `database1`.`invoices`: 41% 05:35 remain
Copying `database1`.`invoices`: 46% 05:08 remain
Copying `database1`.`invoices`: 51% 04:42 remain
Copying `database1`.`invoices`: 56% 04:13 remain
Copying `database1`.`invoices`: 61% 03:44 remain
Copying `database1`.`invoices`: 66% 03:15 remain
Copying `database1`.`invoices`: 71% 02:47 remain
Copying `database1`.`invoices`: 76% 02:19 remain
Copying `database1`.`invoices`: 81% 01:51 remain
2014-09-11T13:49:39 Copied rows OK.
2014-09-11T13:49:40 Swapping tables...
2014-09-11T13:49:40 Swapped original and new tables OK.
2014-09-11T13:49:40 Dropping old table...
2014-09-11T13:49:42 Dropping triggers...
2014-09-11T13:49:43 Error dropping trigger: DBI connect('database1;;mysql_read_default_group=client','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/bin/pt-online-schema-change line 2261
2014-09-11T13:49:43 Error dropping trigger: DBI connect('database1;;mysql_read_default_group=client','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/bin/pt-online-schema-change line 2261
2014-09-11T13:49:43 Error dropping trigger: DBI connect('database1;;mysql_read_default_group=client','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/bin/pt-online-schema-change line 2261
2014-09-11T13:49:43 To try dropping the triggers again, execute:
DROP TRIGGER IF EXISTS `database1`.`pt_osc_database1_invoices_del`;
DROP TRIGGER IF EXISTS `database1`.`pt_osc_database1_invoices_upd`;
DROP TRIGGER IF EXISTS `database1`.`pt_osc_database1_invoices_ins`;
Altered `database1`.`invoices` but there were errors or warnings.
(in cleanup) 2014-09-11T13:49:42 Error dropping the old table: DBD::mysql::db do failed: Lost connection to MySQL server during query [for Statement "DROP TABLE IF EXISTS `database1`.`_invoices_old`"] at /usr/bin/pt-online-schema-change line 9291.
2014-09-11T13:49:43 Dropping triggers...
2014-09-11T13:49:43 Error dropping trigger: DBI connect('database1;;mysql_read_default_group=client','',...) failed: (no error string) at /usr/bin/pt-online-schema-change line 2261
2014-09-11T13:49:43 Error dropping trigger: DBI connect('database1;;mysql_read_default_group=client','',...) failed: (no error string) at /usr/bin/pt-online-schema-change line 2261
2014-09-11T13:49:43 Error dropping trigger: DBI connect('database1;;mysql_read_default_group=client','',...) failed: (no error string) at /usr/bin/pt-online-schema-change line 2261
2014-09-11T13:49:43 To try dropping the triggers again, execute:
DROP TRIGGER IF EXISTS `database1`.`pt_osc_database1_invoices_del`;
DROP TRIGGER IF EXISTS `database1`.`pt_osc_database1_invoices_upd`;
DROP TRIGGER IF EXISTS `database1`.`pt_osc_database1_invoices_ins`;
DROP TRIGGER IF EXISTS `database1`.`pt_osc_database1_invoices_del`;
DROP TRIGGER IF EXISTS `database1`.`pt_osc_database1_invoices_upd`;
DROP TRIGGER IF EXISTS `database1`.`pt_osc_database1_invoices_ins`;
Altered `database1`.`invoices` but there were errors or warnings.
How to avoid similar problems in the future?