MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
  • MariaDB\ 71.8%
  • C++ 16.4%
  • C 10.4%
  • Shell 0.5%
  • Perl 0.4%
  • Other 0.3%
Find a file
Sujatha b347396181 MDEV-11094: Blackhole table updates on slave fail when row annotation is enabled
Problem:
=======
rpl_blackhole.test fails when executed with following options
mysqld=--binlog_annotate_row_events=1, mysqld=--replicate_annotate_row_events=1

Test output:
------------
worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 16000..16019
rpl.rpl_blackhole_bug 'mix'              [ pass ]    791
rpl.rpl_blackhole_bug 'row'              [ fail ]
Replicate_Wild_Ignore_Table
Last_Errno	1032
Last_Error	Could not execute Update_rows_v1 event on table test.t1; Can't find
record in 't1', Error_code: 1032; handler error HA_ERR_END_OF_FILE; the event's
master log master-bin.000001, end_log_pos 1510

Analysis:
=========
Enabling "replicate_annotate_row_events" on slave, Tells the slave to write
annotate rows events received from the master to its own binary log. The
received annotate events are applied after the Gtid event as shown below.
thd->query() will be set to the actual query received from the master, through
annotate event. Annotate_rows event should not be deleted after the event is
applied as the thd->query will be used to generate new Annotate_rows event
during applying the subsequent Rows events. After the last Rows event has been
applied, the saved Annotate_rows event (if any) will be deleted.

In balckhole engine all the DML operations are noops as they donot store any
data. They simply return success without doing any operation. But the existing
strictly expects thd->query() to be 'NULL' to identify that row based
replication is in use. This assumption will fail when row annotations are
enabled as the query is not 'NULL'. Hence various row based operations like
'update', 'delete', 'index lookup' will fail when row annotations are enabled.

Fix:
===
Extend the row based replication check to include row annotations as well.
i.e Either the thd->query() is NULL or thd->query() points to query and row
annotations are in use.
2019-05-29 15:18:52 +05:30
BUILD Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
client MDEV-788 mysqlimport should support the ability to disable foreign keys 2019-05-15 18:45:58 +04:00
cmake Merge 5.5 into 10.1 2019-05-28 11:25:45 +03:00
dbug Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
debian Mention the sample IPv4 address 10.0.0.1 2019-05-28 10:54:30 +03:00
Docs Grammatical errors of README-wsrep fixed. (#915) 2018-12-22 13:34:50 +04:00
extra Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
include Merge 5.5 into 10.1 2019-05-28 11:25:45 +03:00
libmysql Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
libmysqld Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
libservices Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
man MDEV-19537: Document mysqlimport option ignore-foreign-keys 2019-05-21 17:04:18 +04:00
mysql-test MDEV-11094: Blackhole table updates on slave fail when row annotation is enabled 2019-05-29 15:18:52 +05:30
mysys Merge 5.5 into 10.1 2019-05-28 11:25:45 +03:00
mysys_ssl Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
pcre Merge branch 'merge-pcre' into 10.1 2019-04-26 16:11:55 +02:00
plugin Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
randgen/conf
scripts Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql MDEV-19614: Fix innodb_plugin on Windows 2019-05-28 15:24:32 +03:00
sql-bench Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql-common Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
storage MDEV-11094: Blackhole table updates on slave fail when row annotation is enabled 2019-05-29 15:18:52 +05:30
strings Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
support-files Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
tests Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
unittest Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
vio Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
win Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
wsrep Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
zlib Update FSF Address 2019-05-11 21:29:06 +03:00
.gitattributes Merge branch '10.0' into 10.1 2018-05-05 14:01:59 +02:00
.gitignore Merge branch '10.0' into 10.1 2018-10-30 15:10:01 +01:00
BUILD-CMAKE
CMakeLists.txt Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
config.h.cmake Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
configure.cmake Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
COPYING Update FSF Address 2019-05-11 21:29:06 +03:00
COPYING.thirdparty Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
CREDITS Update contributors 2018-09-10 16:47:44 +04:00
EXCEPTIONS-CLIENT MDEV-5645 MariaDB-5.5.35 - references are made to an "EXCEPTIONS-CLIENT" file but it does not exist 2014-05-31 13:18:56 +02:00
INSTALL-SOURCE Update AskMonty and Atlassian references to MariaDB 2016-03-08 15:24:01 +02:00
INSTALL-WIN-SOURCE Update AskMonty and Atlassian references to MariaDB 2016-03-08 15:24:01 +02:00
KNOWN_BUGS.txt
README Update FSF Address 2019-05-11 21:29:06 +03:00
VERSION bump the VERSION 2019-05-08 09:54:26 -04:00

MariaDB is designed as a drop-in replacement of MySQL(R) with more
features, new storage engines, fewer bugs, and better performance.

MariaDB is brought to you by the MariaDB Foundation.
Please read the CREDITS file for details about the MariaDB Foundation,
and who is developing MariaDB.

MariaDB is developed by many of the original developers of MySQL who
now work for the MariadB Foundation and the MariaDB Corporation, and by many people in
the community.

MySQL, which is the base of MariaDB, is a product and trademark of Oracle
Corporation, Inc. For a list of developers and other contributors,
see the Credits appendix.  You can also run 'SHOW authors' to get a
list of active contributors.

A description of the MariaDB project and a manual can be found at:
http://mariadb.org/
https://mariadb.com/kb/en/
https://mariadb.com/kb/en/mariadb-vs-mysql-features/
https://mariadb.com/kb/en/mariadb-versus-mysql-features/
https://mariadb.com/kb/en/mariadb-versus-mysql-compatibility/

As MariaDB is a full replacement of MySQL, the MySQL manual at
http://dev.mysql.com/doc is generally applicable.

More help is available from the Maria Discuss mailing list
https://launchpad.net/~maria-discuss
and the #maria IRC channel on Freenode.

***************************************************************************

NOTE: 

MariaDB is specifically available only under version 2 of the GNU
General Public License (GPLv2). (I.e. Without the "any later version"
clause.) This is inherited from MySQL. Please see the README file in
the MySQL distribution for more information.

License information can be found in the COPYING, COPYING.LESSER,
and COPYING.thirdparty files.

***************************************************************************

IMPORTANT:

Bug and/or error reports regarding MariaDB should be submitted at:
https://jira.mariadb.org

For reporting security vulnerabilities see:
https://mariadb.org/about/security-policy/

Bugs in the MySQL code can also be submitted at:
http://bugs.mysql.com

The code for MariaDB, including all revision history, can be found at:
https://github.com/MariaDB/server

***************************************************************************