Merge lp:~hrvojem/percona-server/bug1065771-5.1 into lp:percona-server/5.1

Proposed by Hrvoje Matijakovic
Status: Merged
Approved by: Laurynas Biveinis
Approved revision: no longer in the source branch.
Merged at revision: 525
Proposed branch: lp:~hrvojem/percona-server/bug1065771-5.1
Merge into: lp:percona-server/5.1
Diff against target: 159 lines (+58/-6)
7 files modified
doc/source/flexibility/mysqldump_ignore_create_error.rst (+22/-0)
doc/source/flexibility/replication_skip_single_statement.rst (+1/-1)
doc/source/index.rst (+1/-0)
doc/source/management/sql_no_fcache.rst (+29/-1)
doc/source/performance/innodb_doublewrite_path.rst (+2/-2)
doc/source/release-notes/Percona-Server-5.1.67-14.3.rst (+1/-1)
doc/source/scalability/innodb_io.rst (+2/-1)
To merge this branch: bzr merge lp:~hrvojem/percona-server/bug1065771-5.1
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Approve
Review via email: mp+144722@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

   - s/This feature prevents unwanted blocks of data to be
     cached./This feature prevents the caching of the unwanted data
     blocks.
   - Diff line 121: is the "this post" removal intentional?

review: Needs Fixing
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'doc/source/flexibility/mysqldump_ignore_create_error.rst'
--- doc/source/flexibility/mysqldump_ignore_create_error.rst 1970-01-01 00:00:00 +0000
+++ doc/source/flexibility/mysqldump_ignore_create_error.rst 2013-01-30 09:34:40 +0000
@@ -0,0 +1,22 @@
1.. _mysqldump_ignore_create_error:
2
3======================================
4 Ignoring missing tables in mysqldump
5======================================
6
7In case table name was changed during the :command:`mysqldump` process taking place, :command:`mysqldump` would stop with error: ::
8
9 Couldn't execute 'show create table testtable'
10 Table 'testdb.tabletest' doesn't exist (1146)\n")
11
12This could happen if :command:`mysqldump` was taking a backup of a working slave and during that process table name would get changed. This error happens because :command:`mysqldump` takes the list of the tables at the beginning of the dump process but the ``SHOW CREATE TABLE`` happens just before the table is being dumped.
13
14With this option :command:`mysqldump` will still show error to ``stderr``, but it will continue to work and dump the rest of the tables.
15
16Version Specific Information
17============================
18
19 * :rn:`1.0.6-rel10.1`
20 :command:`mysqldump` option :option:`--ignore-create-error` introduced
21
22
023
=== modified file 'doc/source/flexibility/replication_skip_single_statement.rst'
--- doc/source/flexibility/replication_skip_single_statement.rst 2012-12-13 12:31:02 +0000
+++ doc/source/flexibility/replication_skip_single_statement.rst 2013-01-30 09:34:40 +0000
@@ -50,7 +50,7 @@
50Consider this case: ::50Consider this case: ::
5151
52 SET GLOBAL sql_slave_statement_skip_counter=n;52 SET GLOBAL sql_slave_statement_skip_counter=n;
53 SET GLOBAL sql_slave__skip_counter=m;53 SET GLOBAL sql_slave_skip_counter=m;
5454
55The first statement will skip the next ``n`` events in the current event group. At that point, one would expect the second statement to operate as described in the |MySQL| documentation for ``sql_slave_skip_counter``. However, depending on the values of ``n`` and ``m`` and the contents of the binary log, the effects of the interactions of the two statements can involve very complicated scenarios. **THESE SCENARIOS HAVE NOT BEEN TESTED**.55The first statement will skip the next ``n`` events in the current event group. At that point, one would expect the second statement to operate as described in the |MySQL| documentation for ``sql_slave_skip_counter``. However, depending on the values of ``n`` and ``m`` and the contents of the binary log, the effects of the interactions of the two statements can involve very complicated scenarios. **THESE SCENARIOS HAVE NOT BEEN TESTED**.
5656
5757
=== modified file 'doc/source/index.rst'
--- doc/source/index.rst 2012-12-13 12:31:02 +0000
+++ doc/source/index.rst 2013-01-30 09:34:40 +0000
@@ -92,6 +92,7 @@
92 flexibility/replication_skip_single_statement92 flexibility/replication_skip_single_statement
93 flexibility/buff_read_ahead_area93 flexibility/buff_read_ahead_area
94 flexibility/innodb_fast_shutdown94 flexibility/innodb_fast_shutdown
95 flexibility/mysqldump_ignore_create_error
9596
96Reliability Improvements97Reliability Improvements
97========================98========================
9899
=== modified file 'doc/source/management/sql_no_fcache.rst'
--- doc/source/management/sql_no_fcache.rst 2012-12-13 12:31:02 +0000
+++ doc/source/management/sql_no_fcache.rst 2013-01-30 09:34:40 +0000
@@ -4,7 +4,7 @@
4Prevent Caching to FlashCache4Prevent Caching to FlashCache
5==============================5==============================
66
7*FlashCache* increases performance by caching data in SSDs. It works even better when only hot data is cached. This feature prevents unwanted blocks of data to be cached.7`FlashCache <https://github.com/facebook/flashcache/blob/master/doc/flashcache-doc.txt>`_ increases performance by caching data on SSDs. It works even better when only hot data is cached. This feature prevents the caching of the unwanted blocks of data.
88
9Better utilization of *FlashCache* partitions is achieved when caching of rarely used data is avoided. Use of this feature prevents blocks of data from being cached to *FlashCache* during a query.9Better utilization of *FlashCache* partitions is achieved when caching of rarely used data is avoided. Use of this feature prevents blocks of data from being cached to *FlashCache* during a query.
1010
@@ -21,6 +21,33 @@
21 * :rn:`5.1.49-rel12.0`:21 * :rn:`5.1.49-rel12.0`:
22 Full functionality available.22 Full functionality available.
2323
24 * :rn:`5.1.66-14.1`:
25 Variable :variable:`have_flashcache` introduced.
26
27System Variables
28================
29.. variable:: have_flashcache
30
31 :version 5.1.66-14.1: Variable introduced
32 :cli: Yes
33 :conf: Yes
34 :scope: Global
35 :dyn: No
36 :vartype: Boolean
37 :range: Yes/No
38
39This variable shows if the server was compiled with Flashcache support.
40
41Status Variables
42================
43.. variable:: Flashcache_enabled
44
45 :scope: Global
46 :vartype: Boolean
47 :range: OFF/ON
48
49This status variable shows if the Flashcache support has been enabled.
50
24Other Information51Other Information
25=================52=================
2653
@@ -32,3 +59,4 @@
32 * `Releasing Flashcache <http://www.facebook.com/note.php?note_id=388112370932>`_59 * `Releasing Flashcache <http://www.facebook.com/note.php?note_id=388112370932>`_
3360
34 * `Level 2 Flash cache is there <http://www.mysqlperformanceblog.com/2010/04/27/level-2-flash-cache-is-there/>`_61 * `Level 2 Flash cache is there <http://www.mysqlperformanceblog.com/2010/04/27/level-2-flash-cache-is-there/>`_
62
3563
=== modified file 'doc/source/performance/innodb_doublewrite_path.rst'
--- doc/source/performance/innodb_doublewrite_path.rst 2012-12-13 12:31:02 +0000
+++ doc/source/performance/innodb_doublewrite_path.rst 2013-01-30 09:34:40 +0000
@@ -19,7 +19,7 @@
19Goal of the Doublewrite Buffer19Goal of the Doublewrite Buffer
20------------------------------20------------------------------
2121
22|InnoDB| and |XtraDB| use many structures, some on disk and others in memory, to manage data as efficiently as possible. To have an overview of the different components see this post. Let``s now focus on the doublewrite buffer.22|InnoDB| and |XtraDB| use many structures, some on disk and others in memory, to manage data as efficiently as possible. To have an overview of the different components see this `post <http://www.mysqlperformanceblog.com/2010/04/26/xtradb-innodb-internals-in-drawing/>`_. Let's now focus on the doublewrite buffer.
2323
24|InnoDB| / |XtraDB| uses a reserved area in its main tablespace, called the doublewrite buffer, to prevent data corruption that could occur with partial page writes. When the data in the buffer pool is flushed to disk, |InnoDB| / |XtraDB| will flush whole pages at a time (by default 16KB pages) and not just the records that have changed within a page. It means that, if anything unexpected happens during the write, the page can be partially written leading to corrupt data.24|InnoDB| / |XtraDB| uses a reserved area in its main tablespace, called the doublewrite buffer, to prevent data corruption that could occur with partial page writes. When the data in the buffer pool is flushed to disk, |InnoDB| / |XtraDB| will flush whole pages at a time (by default 16KB pages) and not just the records that have changed within a page. It means that, if anything unexpected happens during the write, the page can be partially written leading to corrupt data.
2525
@@ -27,7 +27,7 @@
2727
28If a partial page write occurs in the data files, |InnoDB| / |XtraDB| will check on recovery if the checksum of the page in the data file is different from the checksum of the page in the doublewrite buffer and thus will know if the page is corrupt or not. If it is corrupt, the recovery process will use the page stored in the doublewrite buffer to restore the correct data.28If a partial page write occurs in the data files, |InnoDB| / |XtraDB| will check on recovery if the checksum of the page in the data file is different from the checksum of the page in the doublewrite buffer and thus will know if the page is corrupt or not. If it is corrupt, the recovery process will use the page stored in the doublewrite buffer to restore the correct data.
2929
30If a partial write occurs in the doublewrite buffer, the original page is untouched and can be used with the redo logs to recover the data. For further information on the doublewrite buffer, you can see this post.30If a partial write occurs in the doublewrite buffer, the original page is untouched and can be used with the redo logs to recover the data.
3131
32Performance Impact of the Doublewrite Buffer32Performance Impact of the Doublewrite Buffer
33--------------------------------------------33--------------------------------------------
3434
=== modified file 'doc/source/release-notes/Percona-Server-5.1.67-14.3.rst'
--- doc/source/release-notes/Percona-Server-5.1.67-14.3.rst 2013-01-18 09:27:58 +0000
+++ doc/source/release-notes/Percona-Server-5.1.67-14.3.rst 2013-01-30 09:34:40 +0000
@@ -4,7 +4,7 @@
4 |Percona Server| 5.1.67-14.3 4 |Percona Server| 5.1.67-14.3
5==============================5==============================
66
7Percona is glad to announce the release of |Percona Server| 5.1.67-14.3 on January 21st, 2013 (Downloads are available from `Percona Server 5.1.67-14.3 downloads <http://www.percona.com/downloads/Percona-Server-5.1/Percona-Server-5.1.67-14.3/>`_ and from the `Percona Software Repositories <http://http://www.percona.com/doc/percona-server/5.1/installation.html>`_).7Percona is glad to announce the release of |Percona Server| 5.1.67-14.3 on January 23rd, 2013 (Downloads are available from `Percona Server 5.1.67-14.3 downloads <http://www.percona.com/downloads/Percona-Server-5.1/Percona-Server-5.1.67-14.3/>`_ and from the `Percona Software Repositories <http://http://www.percona.com/doc/percona-server/5.1/installation.html>`_).
88
9Based on `MySQL 5.1.67 <http://dev.mysql.com/doc/refman/5.1/en/news-5.1.67.html>`_, this release will include all the bug fixes in it. All of |Percona|'s software is open-source and free, all the details of the release can be found in the `5.1.67-14.3 milestone at Launchpad <https://launchpad.net/percona-server/+milestone/5.1.67-14.3>`_.9Based on `MySQL 5.1.67 <http://dev.mysql.com/doc/refman/5.1/en/news-5.1.67.html>`_, this release will include all the bug fixes in it. All of |Percona|'s software is open-source and free, all the details of the release can be found in the `5.1.67-14.3 milestone at Launchpad <https://launchpad.net/percona-server/+milestone/5.1.67-14.3>`_.
1010
1111
=== modified file 'doc/source/scalability/innodb_io.rst'
--- doc/source/scalability/innodb_io.rst 2012-12-13 12:31:02 +0000
+++ doc/source/scalability/innodb_io.rst 2013-01-30 09:34:40 +0000
@@ -131,6 +131,7 @@
131131
132.. variable:: innodb_flush_method132.. variable:: innodb_flush_method
133133
134 :version 5.1.54-12.5: ``ALL_O_DIRECT`` option added
134 :cli: Yes135 :cli: Yes
135 :conf: Yes136 :conf: Yes
136 :scope: Global137 :scope: Global
@@ -152,7 +153,7 @@
152 * ``O_DIRECT``: 153 * ``O_DIRECT``:
153 Use ``O_DIRECT`` (or ``directio()`` on Solaris) to open the data files; use ``fsync()`` to flush both the data and log files.154 Use ``O_DIRECT`` (or ``directio()`` on Solaris) to open the data files; use ``fsync()`` to flush both the data and log files.
154155
155 * ``ALL_O_DIRECT``: use ``O_DIRECT`` open and flush both the data and the log files. This value was added in |Percona Server| release :rn:`5.1.54-12.5`.156 * ``ALL_O_DIRECT``: use ``O_DIRECT`` open and flush both the data and the log files. This option is recommended when |InnoDB| log files are big (more than 8GB), otherwise there might be even a performance degradation. **Note**: When using this option on *ext4* filesystem variable :variable:`innodb_log_block_size` should be set to 4096 (default log-block-size in *ext4*) in order to avoid the ``unaligned AIO/DIO`` warnings.
156157
157158
158.. variable:: innodb_flush_neighbor_pages159.. variable:: innodb_flush_neighbor_pages

Subscribers

People subscribed via source and target branches