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

Galera: Replicate MariaDB GTID to other nodes in the cluster

Details

    • 10.2.4-4, 10.2.4-1, 10.3.1-2, 10.2.10, 10.2.11, 10.1.30, 10.2.12

    Description

      The MariaDB GTID is currently not transferred to other nodes in the cluster. As a result,
      receiving nodes simply use the current gtid_domain_id (or wsrep_gitd_domain_id in 10.1)
      and server id to tag the incoming transactions along with galera-assigned sequence number.

      Attachments

        Issue Links

          Activity

            Would there be any issue using the galera seqno as the last part of the mariadb gtid ? apart for RSU DDL i mean ?

            SylvainArbaudie Sylvain ARBAUDIE added a comment - Would there be any issue using the galera seqno as the last part of the mariadb gtid ? apart for RSU DDL i mean ?
            teemu.ollakka Teemu Ollakka added a comment -

            There are at least two major issues which need to be resolved in order to use Galera seqno as part of the MariaDB GTID:

            1. Occasionally Galera seqno is generated for a write set which do not commit a transaction, these include (but not limited to) write sets that fail certification and intermediate streaming replication fragments. In order to keep GTID sequences continuous, all of these events should be logged in binlog as dummy events, which could cause excessive clutter under certain workloads.
            2. Master-slave topology where Galera cluster acts as a slave: It is required that the original GTID from the master should be preserved in binlog events. However, as Galera will generate a write set/seqno for the applied transaction, there will be two GTIDs which should be persisted in binlog for each transaction. It is not clear how this could be handled to preserve compatibility with async master/slave replication.
            teemu.ollakka Teemu Ollakka added a comment - There are at least two major issues which need to be resolved in order to use Galera seqno as part of the MariaDB GTID: Occasionally Galera seqno is generated for a write set which do not commit a transaction, these include (but not limited to) write sets that fail certification and intermediate streaming replication fragments. In order to keep GTID sequences continuous, all of these events should be logged in binlog as dummy events, which could cause excessive clutter under certain workloads. Master-slave topology where Galera cluster acts as a slave: It is required that the original GTID from the master should be preserved in binlog events. However, as Galera will generate a write set/seqno for the applied transaction, there will be two GTIDs which should be persisted in binlog for each transaction. It is not clear how this could be handled to preserve compatibility with async master/slave replication.

            A feature like MDEV-20715 could also improve Galera's support for MariaDB GTIDs. Specifically, it could prevent each node from generating GTIDs for local transactions, which could make it easier for replication slaves to use any cluster node as master, without risking inconsistent GTIDs.

            GeoffMontee Geoff Montee (Inactive) added a comment - A feature like MDEV-20715 could also improve Galera's support for MariaDB GTIDs. Specifically, it could prevent each node from generating GTIDs for local transactions, which could make it easier for replication slaves to use any cluster node as master, without risking inconsistent GTIDs.

            Okay to push

            sachin.setiya.007 Sachin Setiya (Inactive) added a comment - Okay to push
            greenman Ian Gilfillan added a comment -

            The pull request linked with this issue is still marked as open, although the task has been closed.

            greenman Ian Gilfillan added a comment - The pull request linked with this issue is still marked as open, although the task has been closed.

            People

              jplindst Jan Lindström (Inactive)
              nirbhay_c Nirbhay Choubey (Inactive)
              Votes:
              28 Vote for this issue
              Watchers:
              41 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.