Operating system errors if innobase_atomic_writes are used on separate undo files that do not exists

Bug #1255638 reported by Jan Lindström
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
Medium
Laurynas Biveinis
5.1
Invalid
Undecided
Unassigned
5.5
Invalid
Undecided
Unassigned
5.6
Fix Released
Medium
Laurynas Biveinis

Bug Description

2013-11-27 11:48:25 7f3e057db720 InnoDB: Operating system error number 9 in a file operation.
InnoDB: Error number 9 means 'Bad file descriptor'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html
2013-11-27 11:48:25 48933 [ERROR] InnoDB: File ./undo001: 'ioctl' returned OS error 109.

Suggested fix:

--- os0file.cc 2013-10-22 10:42:41.000000000 +0300
+++ os0file.cc 2013-11-27 20:56:19.111828166 +0200
@@ -1824,7 +1824,11 @@
  }
 #endif /* USE_FILE_LOCK */

+ /* In 5.6 we could have separate undo files, but we could
+ come here with bad file descriptor if separate undo
+ file does not exists. */
  if (srv_use_atomic_writes && type == OS_DATA_FILE
+ && file != -1
      && !os_file_set_atomic_writes(name, file)) {

   *success = FALSE;

Related branches

affects: percona-xtrabackup → percona-xtradb
affects: percona-xtradb → percona-server
tags: added: contribution low-hanging-fruit xtradb
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Thanks Jan, we have merged the fix.

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/PS-1451

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.