Comment 1 for bug 1262500

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

mysql-server$ bzr log -r 4334
------------------------------------------------------------
revno: 4334
committer: Aditya A <email address hidden>
branch nick: mysql-trunk
timestamp: Mon 2012-08-27 10:57:55 +0530
message:
  BUG#11761646 - INNODB SHOULD RETRY ON FAILED READ OR WRITE,
                 NOT IMMEDIATELY PANIC
  Related:
  http://bugs.mysql.com/bug.php?id=54430
  (innodb should retry partial reads/writes where errno was 0)

  Summary
  -------
  In the Linux flavours the read and write system calls can
  do partial reads and writes.

  The man page of read says that " The return value is
  is smaller than the number of bytes requested; this
  may happen for example because fewer bytes are actually
  available right now (maybe because we were close to
  end-of-file,or because we are reading from a pipe,
  or from a terminal), or because read() was interrupted by
  a signal."

  The Fix
  -------
  Initially InnoDB was not handling the partial read and
  writes.With this fix innodb tries NUM_RETRIES_ON_PARTIAL_IO
  (which by default is equal to 10)times to read or write the
  partial data .The fix also takes care of partial read and
  write in case of Linux native API's where read and write
  are asynyncronus operations.

  rb:1158 [approved by inaam.rana]