Make all copy back threads to stop/abort immediately once one of the threads hit an error with copy-back --parallel=10
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
171205 06:47:31 [02] Copying ./full_
171205 06:47:31 [06] Copying ./xtrabackup_
171205 06:47:31 [06] ...done
xtrabackup: Can't create/write to file '/home/
[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_
171205 06:47:37 [03] ...done
171205 06:47:37 [08] ...done
171205 06:47:37 [09] ...done
Error: copy-back thread 6 failed.
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 |
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PXB-797