ibd files contain bogus trailing zeros and non-page size file sizes
Bug #1262500 reported by
Andrew Gaul
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Server |
Unknown
|
Unknown
|
|||
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
Medium
|
Laurynas Biveinis | ||
5.1 |
Fix Released
|
Medium
|
Laurynas Biveinis | ||
5.5 |
Fix Released
|
Medium
|
Laurynas Biveinis | ||
5.6 |
Fix Released
|
Medium
|
Laurynas Biveinis |
Bug Description
os0file.
Related branches
lp:~gaul/percona-server/pwrite_partial_write
Rejected
for merging
into
lp:percona-server/5.6
- Laurynas Biveinis (community): Needs Resubmitting
-
Diff: 20 lines (+4/-3)1 file modifiedPercona-Server/storage/innobase/os/os0file.cc (+4/-3)
lp:~laurynas-biveinis/percona-server/bug1262500-5.1
- Alexey Kopytov (community): Approve
- Registry Administrators: Pending requested
-
Diff: 129 lines (+37/-5) (has conflicts)5 files modifiedMakefile (+5/-0)
Percona-Server/storage/innodb_plugin/os/os0file.c (+7/-5)
doc/source/conf.py (+13/-0)
doc/source/faq.rst (+8/-0)
doc/source/release-notes/release-notes_index.rst (+4/-0)
lp:~laurynas-biveinis/percona-server/bug1262500-5.5
- Alexey Kopytov (community): Approve
- Registry Administrators: Pending requested
-
Diff: 36 lines (+7/-5)1 file modifiedPercona-Server/storage/innobase/os/os0file.c (+7/-5)
lp:~laurynas-biveinis/percona-server/bug1262500-5.6
- Alexey Kopytov (community): Approve
- Registry Administrators: Pending requested
-
Diff: 36 lines (+7/-5)1 file modifiedPercona-Server/storage/innobase/os/os0file.cc (+7/-5)
mysql-server$ bzr log -r 4334 ------- ------- ------- ------- ------- ------- ------- ----
NOT IMMEDIATELY PANIC bugs.mysql. com/bug. php?id= 54430
-------
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,
Related:
http://
(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 ON_PARTIAL_ IO
-------
Initially InnoDB was not handling the partial read and
writes.With this fix innodb tries NUM_RETRIES_
(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]