Make all copy back threads to stop/abort immediately once one of the threads hit an error with copy-back --parallel=10

Bug #1736338 reported by Shahriyar Rzayev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Status tracked in 2.4
2.3
Triaged
Medium
Unassigned
2.4
Triaged
Medium
Unassigned

Bug Description

With xtrabackup copy-back + --parallel, if there was an error in one of the threads, it is going to continue/finish copy-back action till the end.
The desired behaviour is to stop immediately once hit the error.

xtrabackup copy-back with --parallel=10:

xtrabackup: Starting 10 threads for parallel data files transfer
171205 06:47:31 [04] Copying ./ib_buffer_pool to /home/shahriyar.rzaev/XB_TEST/server_dir/PS041217-percona-server-5.7.20-18-linux-x86_64-debug/node1/ib_buffer_pool
171205 06:47:31 [02] Copying ./full_backup.stream to /home/shahriyar.rzaev/XB_TEST/server_dir/PS041217-percona-server-5.7.20-18-linux-x86_64-debug/node1/full_backup.stream
171205 06:47:31 [06] Copying ./xtrabackup_slave_info to /home/shahriyar.rzaev/XB_TEST/server_dir/PS041217-percona-server-5.7.20-18-linux-x86_64-debug/node1/xtrabackup_slave_info
171205 06:47:31 [06] ...done
xtrabackup: Can't create/write to file '/home/shahriyar.rzaev/XB_TEST/server_dir/PS041217-percona-server-5.7.20-18-linux-x86_64-debug/out_ts1.ibd' (Errcode: 17 - File exists)
[07] error: cannot open the destination stream for ./out_ts1.ibd
[07] Error: copy_file() failed.
171205 06:47:31 [04] ...done
.
##Continued execution of copying thing here
.
171205 06:47:37 [03] Copying ./xtrabackup_binlog_pos_innodb to /home/shahriyar.rzaev/XB_TEST/server_dir/PS041217-percona-server-5.7.20-18-linux-x86_64-debug/node1/xtrabackup_binlog_pos_innodb
171205 06:47:37 [03] ...done
171205 06:47:37 [08] ...done
171205 06:47:37 [09] ...done
Error: copy-back thread 6 failed.

Tags: qa
summary: - Make the whole copy back to fail once it hit an error with copy-back
+ Make the whole copy back to stop once it hit an error with copy-back
--parallel=10
summary: - Make the whole copy back to stop once it hit an error with copy-back
- --parallel=10
+ Make the whole copy back to stop/abort immediately once it hit an error
+ with copy-back --parallel=10
description: updated
summary: - Make the whole copy back to stop/abort immediately once it hit an error
- with copy-back --parallel=10
+ Make the all copy back threads to stop/abort immediately once one of
+ threads hit an error with copy-back --parallel=10
summary: - Make the all copy back threads to stop/abort immediately once one of
+ Make the all copy back threads to stop/abort immediately once one of the
threads hit an error with copy-back --parallel=10
summary: - Make the all copy back threads to stop/abort immediately once one of the
+ Make all copy back threads to stop/abort immediately once one of the
threads hit an error with copy-back --parallel=10
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-797

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.