Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 10.1.1
-
Fix Version/s: N/A
-
Component/s: Replication
-
Labels:None
-
Environment:Linux 2.6.32-220.17.1.el6.x86_64 #1 SMP Wed May 16 00:01:37 BST 2012 x86_64 x86_64 x86_64 GNU/Linux
Description
When slave_run_trigger_for_rbr is set to logging on the slave, does it mean triggers can be fired only on the slave? In our test case it works when the trigger is on the slave, but we do have users who has triggers on master as well and we hope it can work on both cases, but right now it looks like the change made by triggers on master can not be replicated to the slave, we get an error
Last_SQL_Error: Could not execute Write_rows_v1 event on table tsom.z; Can't update table 'xx' in stored function/trigger because it is already used by statement which invoked this stored function/trigger., Error_code: 1442; handler error HA_ERR_GENERIC; the event's master log mysql-bin.000045, end_log_pos 2776
the master is on MySQL 5.5.39 while the slave is on MariaDB 10.1.1.
mysql 00:08:45 [PA1 DEV 001] [tsom] [3101]> select @@version; +---------------------------------+ | @@version | +---------------------------------+ | 5.5.39-tokudb-7.5.0-MariaDB-log | +---------------------------------+ mysql 00:09:02 [PA1 DEV 001] [tsom] [3108]> select @@version; +--------------------------+ | @@version | +--------------------------+ | 10.1.1-MariaDB-wsrep-log | +--------------------------+
Is this working as designed?
Thank you.
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Actually, RBR triggers do not run for tables which already have any trigger run on master but it is done silently. Could you provide more detailed test suite for the error then I'll be more certain if it is bug or not.