~akopytov/percona-xtrabackup/bug1097158-2.0

Viewing all changes in revision 491.

  • Committer: Alexey Kopytov
  • Date: 2013-01-08 10:14:53 UTC
  • Revision ID: akopytov@gmail.com-20130108101453-h5uqh0nincke8vgc
Bug #1097158: xb_log_overwrap fails sporadically in Jenkin

The test case tries to generate enough log writes to cause the log files
wrap around and make xtrabackup fail with an error.

Found 2 potential problems:

- the test used the default log buffer size. Which, for an InnoDB
  plugin's default 8M buffer size, means there may be not enough changes
  in the on-disk files to trigger the expected error
- the test suspended the main xtrabackup thread, but not the log copying
  thread. Which means the log copying thread could be catching up in the
  background and avoid reading wrapped-around log entries, and thus, the
  expected error.

Fixed by setting an explicit log buffer size to the minimum value (1M)
and using debug sync to suspend log copying thread, rather than the main
one.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: