[MDEV-8003] Under the multi-source-replication, when performing "grant ..." statement of the loop execution occurs. Created: 2015-04-16 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.0, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11 |
| Fix Version/s: | 10.4, 10.5, 10.6, 10.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | wenlong | Assignee: | Andrei Elkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | multisource, replication, verified | ||
| Environment: |
A:mysql Ver 15.1 Distrib 10.0.13-MariaDB, for Linux (x86_64) using readline 5.1 A master is B(mastername: m1), and replicate datasource d1 |
||
| Attachments: |
|
| Description |
|
There is no problem when I execute "insert into d1.table1 ..." on A. But when I execute the "grant ...; flush privileges;" when there is a problem in the C and D, the occurrence of a loop execution "grant ...; flush privileges;". then modification my.cnf on C and D. Add the following and the bin log like this:
For more information see bin.log |
| Comments |
| Comment by Elena Stepanova [ 2015-04-16 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for the report. In case of INSERTs, you are protected by your ignore-db options; but there is no protection for the "global" statements. ------------------ Summary for Monty Replication topology is this:
S1 issues a global statement, e.g. 'flush privileges'. gtid_strict_mode would detect it, but all it can do is abort replication completely. Here is a simple test case to reproduce the problem:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by wenlong [ 2015-04-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you very much ~~ |