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

Skip FK checks in Galera during applying in IST

Details

    Description

      Appliers need to verify foreign key constraints during normal operation, in multi-active topologies, and for this reason appliers are configured to enable FK checking.

      However, during node joining, in IST and latter catch up period, the node is still idle (from local connections), and only source for incoming transactions is the cluster sending certified write sets for applying. IST happens with parallel applying, and there is a possibility that foreign key check cause lock conflicts between appliers accessing FK child and parent tables. Also, the excessive FK checking will slow down IST process somewhat.

      For this reasons, we could relax FK checks for appliers during IST and catch up periods. The relaxed FK check mode should, however, be configurable e.g. by wsrep_mode flag: SKIP_APPLIER_FK_CHECKS_IN_IST. When this operation mode is set, and the node is processing IST or catch up, appliers should skip FK checking.

      Attachments

        1. n1 (1).cnf
          0.9 kB
          Ramesh Sivaraman
        2. n2 (1).cnf
          0.9 kB
          Ramesh Sivaraman

        Issue Links

          Activity

            denis.protivensky Denis Protivensky created issue -
            denis.protivensky Denis Protivensky made changes -
            Field Original Value New Value
            Fix Version/s N/A [ 14700 ]
            denis.protivensky Denis Protivensky made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            denis.protivensky Denis Protivensky made changes -
            Status In Progress [ 3 ] In Testing [ 10301 ]
            denis.protivensky Denis Protivensky made changes -
            Assignee Denis Protivensky [ JIRAUSER52676 ] Julius Goryavsky [ sysprg ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Fix Version/s 11.8 [ 29921 ]
            Fix Version/s N/A [ 14700 ]
            sysprg Julius Goryavsky made changes -
            Component/s Galera [ 10124 ]
            serg Sergei Golubchik made changes -
            julien.fritsch Julien Fritsch made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Labels Preview_11.8
            serg Sergei Golubchik made changes -
            Fix Version/s 12.0 [ 29945 ]
            Fix Version/s 11.8 [ 29921 ]
            sysprg Julius Goryavsky made changes -
            Assignee Julius Goryavsky [ sysprg ] Ramesh Sivaraman [ JIRAUSER48189 ]
            ramesh Ramesh Sivaraman made changes -
            Assignee Ramesh Sivaraman [ JIRAUSER48189 ] Julius Goryavsky [ sysprg ]
            ramesh Ramesh Sivaraman made changes -
            Status In Testing [ 10301 ] Stalled [ 10000 ]
            ramesh Ramesh Sivaraman made changes -
            Attachment n1 (1).cnf [ 74831 ]
            Attachment n2 (1).cnf [ 74832 ]
            serg Sergei Golubchik made changes -
            sysprg Julius Goryavsky made changes -
            Status Stalled [ 10000 ] In Progress [ 3 ]
            serg Sergei Golubchik made changes -
            Status In Progress [ 3 ] In Testing [ 10301 ]
            serg Sergei Golubchik made changes -
            Assignee Julius Goryavsky [ sysprg ] Ramesh Sivaraman [ JIRAUSER48189 ]
            denis.protivensky Denis Protivensky made changes -
            ralf.gebhardt Ralf Gebhardt made changes -
            Labels Preview_11.8 Preview_11.8 Preview_12.0

            People

              ramesh Ramesh Sivaraman
              denis.protivensky Denis Protivensky
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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