~gl-az/percona-xtrabackup/2.1-io-block-size

Viewing all changes in revision 584.

  • Committer: George O. Lorch III
  • Date: 2013-04-30 22:07:23 UTC
  • Revision ID: george.lorch@percona.com-20130430220723-13qs8qwkcub28ldq
This implements the io-block-size option for XtraBackup and innobackupex (just for passthrough) which specifies number of pages to read/write per cycle.
Changes made:
- Increased the default from 64 pages to 256 pages (4M).
- Changed the ds_buffer size when chained behind compression to (UNIV_PAGE_SIZE * (xtrabackup_iosize + 1)), the one extra page is for any additional formatting overhead that would normally be seen in compression and xbstream.
- Corrected the retry logic in fil_cur.cc so that an individual page will be re-read up to a pre-determined number of times and for each validation failure, only that page will be re-read. Previous logic would re-read the entire block and continue counting retry failures even across failed, then successfully read pages.
- Created very simple test case that sets io-block-size to a larger value.
- Corrupt page reads are tested as part of bug766033.sh which creates a corrupted dataset and looks for the error message.
- Not tested as part of any test is a page that has been read and failed validation, then re-read and passed.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: