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

The fact that readconnroute doesn't block writes with router_options=slave is not documented

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.5.26, 23.02.2
    • 2.5.27
    • Documentation
    • ec2

    Description

      The fact that readconnroute will happily route writes to replicas with router_options=slave is not documented. This should be clearly stated in the documentation since one might assume that writes would be blocked.


      Original description:

      Issue; If I define a read-only service As a super user I can still write to a replica. This allows certain users to break an async cluster thru the RO service

      Expectation; If connecting to a RO service, regardless of user, writes should be blocked

      ├──────────┼──────────────┼──────┼─────────────┼──────────────────────┼──────────────┼─────────────────┤
      │ foo1     │ 131.21.1.185 │ 3306 │ 0           │ Master, Running      │ 0-1-45301601 │ MariaDB-Monitor │
      ├──────────┼──────────────┼──────┼─────────────┼──────────────────────┼──────────────┼─────────────────┤
      │ foo2     │ 131.21.1.248 │ 3306 │ 1           │ Slave, Running       │ 0-2-45301602 │ MariaDB-Monitor │
      └──────────┴──────────────┴──────┴─────────────┴──────────────────────┴──────────────┴─────────────────┘
       
      MariaDB [test]> select @@hostname;
      +------------+
      | @@hostname |
      +------------+
      | fooshop-2  |
      +------------+
      1 row in set (0.001 sec)
       
      MariaDB [test]> select @@read_only;
      +-------------+
      | @@read_only |
      +-------------+
      |           1 |
      +-------------+
      1 row in set (0.001 sec)
       
      MariaDB [test]> drop table Phone_Transact;
      Query OK, 0 rows affected (0.006 sec)
      

      Attachments

        Issue Links

          Activity

            People

              markus makela markus makela
              bbancroft Bryan Bancroft (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.