[MXS-2852] data dependency of the replicated data on the meta data Created: 2020-01-27 Updated: 2020-02-14 Resolved: 2020-02-14 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | N/A |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Zdravelina Sokolovska (Inactive) | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | HTAP | ||
| Environment: |
GKE |
||
| Issue Links: |
|
||||||||
| Description |
|
When rewrite_src matches constant data in the SQL, it also gets rewritten. For example, with rewrite_src=db.tree the data in the following SQL gets modified as the regex matches the data:
Original description and title: data dependency of the replicated data on the meta data
MariaDB [(none)]> insert into source_customers.customers values ( 6 , ' source_customers') ; MariaDB [(none)]> insert into source_customers.customers values (7 , ' target_customers') ; MariaDB [(none)]> select * from target_customers.customers ;
-----
-----
|
| Comments |
| Comment by markus makela [ 2020-01-28 ] |
|
This is expected behavior with regular expressions. The caveats of this approach of rewriting are described here: https://mariadb.com/kb/en/mariadb-maxscale-24-binlog-filter/#rewrite_src-and-rewrite_dest |
| Comment by markus makela [ 2020-02-14 ] |
|
Closing as Not a Bug since it's a known limitation of the rewriting mechanism. |
| Comment by Zdravelina Sokolovska (Inactive) [ 2020-02-14 ] |
|
hi , |