xtrabackup_56 fails to create suspend file 'InnoDB: Operating system error number 2 in a file operation.'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
High
|
Alexey Kopytov | ||
2.0 |
Fix Released
|
High
|
Alexey Kopytov | ||
2.1 |
Fix Released
|
High
|
Alexey Kopytov | ||
2.2 |
Fix Released
|
High
|
Alexey Kopytov |
Bug Description
The soon to be 2.1.4 release with the change from https:/
xtrabackup: Creating suspend file '/data/
InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
xtrabackup: Error: failed to create file '/data/
innobackupex: Error: ibbackup child process has died at /data/bin/
This is due to a combination of two things, one, the change mentioned above changed the suspend file creation to use xb_file_
Values at time of call from xb_create_
create_
access_
srv_read_
The code from PS 5.6 os_file_
if (create_mode == OS_FILE_OPEN) {
if (access_type == OS_FILE_READ_ONLY) {
} else if (srv_read_
} else {
}
} else if (srv_read_
} else if (create_mode == OS_FILE_CREATE) {
} else {
}
So, as you can see, the new srv_read_only_mode logic will kick in first and change the create_flag to O_RDONLY instead of the desired O_RDWR, thus causing the 'open' to fail.
Related branches
- George Ormond Lorch III (community): Approve (g2)
-
Diff: 53 lines (+21/-19)1 file modifiedsrc/xtrabackup.cc (+21/-19)
- George Ormond Lorch III (community): Approve (g2)
-
Diff: 52 lines (+21/-18)1 file modifiedsrc/xtrabackup.cc (+21/-18)
Changed in percona-xtrabackup: | |
importance: | Undecided → Critical |
2.1.4 is not affected, the extra suspend logging patch was not merged to release-2.1.4.