Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-2852

data dependency of the replicated data on the meta data

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Incomplete
    • None
    • N/A
    • N/A
    • GKE

    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:

      INSERT INTO db.tree VALUES (1, 'Cigartree');
      

      Original description and title:


      data dependency of the replicated data on the meta data

       
      MariaDB [(none)]> select list_replications();
      +------------------------------------------------------------------------------------------------------------------------+
      | list_replications()                                                                                                    |
      +------------------------------------------------------------------------------------------------------------------------+
      |
              === replication_filter ===
              table: customers
              source database: source_customers
              target database: target_customers
       
       |
      +------------------------------------------------------------------------------------------------------------------------+
      1 row in set (0.002 sec)
       
       
      
      

      MariaDB [(none)]> insert into source_customers.customers values ( 6 , ' source_customers') ;
      Query OK, 1 row affected (0.006 sec)

      MariaDB [(none)]> insert into source_customers.customers values (7 , ' target_customers') ;
      Query OK, 1 row affected (0.005 sec)

      MariaDB [(none)]> select * from target_customers.customers ;
      -------------------------+

      a b

      -------------------------+

      1 internal_customers
      2 external_customers
      3 unknown_customers
      4 vip_customers
      5 back_customers
      6 target_customers
      7 target_customers

      -------------------------+
      7 rows in set (1.066 sec)

      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              winstone Zdravelina Sokolovska (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.