lp:~laurynas-biveinis/percona-server/bug1105709-5.1

Created by Laurynas Biveinis on 2013-01-31 and last modified on 2013-02-06
Get this branch:
bzr branch lp:~laurynas-biveinis/percona-server/bug1105709-5.1
Only Laurynas Biveinis can upload to this branch. If you are Laurynas Biveinis please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Recent revisions

521. By Laurynas Biveinis on 2013-02-06

Fix

- bug 1105709 (InnoDB: Error: Write to file ./ib_modified_log_1_0.xdb
  failed at offset 0 0. when O_DIRECT is used in combination with
  innodb_track_changed_pages=1) and
- bug 1111144 (Newly created bitmap files should indiscriminately
  overwrite old ones).

The issue with bug 1105709 is that bitmap files were created with a
os_file_create(..., OS_DATA_FILE, ...) call, that makes it to be
treated as an InnoDB data file for flushing purposes. Thus,
innodb_flush_method=O_DIRECT made the bitmap files to be created with
O_DIRECT too, and they were not ready for such operation nor it was
intended to.

The fix is to switch to os_file_create_simple API that makes
innodb_flush_method stop applying to the bitmap files. For best OS
cache effects, indicate that we are not going to read the newly
written bitmap data by a posix_fadvise() call.

Add a testcase percona_changed_page_bmp_flush that tests the
combination of bitmap tracking with all the InnoDB flushing methods.

The issue with bug 1111144 is that the os_file_create() above
specified OS_FILE_OVERWRITE too, thus any new bitmap files would
silently overwrite any existing files with the same name. The switch
to os_file_create_simple() made the file create fail in the case of
existing file. A special case is a zero-sized existing files, which
are part of a regular operation, and they are deleted before creating
a new file.

520. By Laurynas Biveinis on 2013-01-30

Automerge prerequisite branch

519. By <email address hidden> on 2013-01-28

Merge lp:~laurynas-biveinis/percona-server/BT-16724-xtradb-bmp-requests-5.1

518. By <email address hidden> on 2013-01-21

Merge lp:~laurynas-biveinis/percona-server/bug110159-5.1

517. By <email address hidden> on 2013-01-19

Merge lp:~sergei.glushchenko/percona-server/51-ST-27220-bug1042946

516. By <email address hidden> on 2013-01-18

Merge lp:~hrvojem/percona-server/rn-5.1.67-14.3

515. By Stewart Smith on 2013-01-18

merge 5.1.66-14.2 release branch

514. By <email address hidden> on 2013-01-17

Merge lp:~percona-core/percona-server/release-5.1.66-14.1

513. By <email address hidden> on 2013-01-17

Merge lp:~hrvojem/percona-server/bug1092106-5.1

512. By <email address hidden> on 2013-01-09

Merge lp:~hrvojem/percona-server/rn-5.1.66-14.2-r2

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:percona-server/5.5
This branch contains Public information 
Everyone can see this information.