Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-6409

CREATE VIEW replication problem if error occurs in mysql_register_view

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.38, 10.0.12
    • Fix Version/s: 5.5.39, 10.0.13
    • Component/s: None
    • Labels:
      None

      Description

      While creating VIEW, msql_register_view method is invoked for creating .frm and process .frm's history backup. This method returns errors like, ER_OUT_OF_RESOURCES, ER_TABLE_EXISTS_ERROR, ER_NO_SUCH_TABLE, etc.

      Even if an error is returned by this method, query is written in the bin log. So consider an example,

      CREATE VIEW v1 as SELECT * FROM t1;
      -> Throws ER_OUT_OF_RESOURCES ERROR
      -> The query is still written into bin log.

      As the query with the error is written into bin log of master server, it is read by all slaves and causes a conflict if same error is not generated at a slave server. This results in replication abort.

        Attachments

          Activity

            People

            Assignee:
            serg Sergei Golubchik
            Reporter:
            srirampatil Sriram Patil
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: