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

Upgrade from MySQL to extract data into master.info file WAS: table-based master info repository

Details

    Description

      Upon upgrade from MySQL to MariaDB master-info-repository and relay-log-info-repository are completely ignored without even warning in .err log. This causes troubles when migrating slave servers. There should be at least warning if not error in .err log.

      Ideally mysql_upgrade script should take care of that and extract the data from mysql.slave_master_info and mysql.slave_relay_log_info to store them in master.info file.

      The ticket description is edited to stress on the missed warnings at or after upgrade to mariadb, the former description text is below. In fact its aim to have table-based master info is addressed through mysql.gtid_slave_pos which in combination with CHANGE MASTER TO ... master_use_gtid = slave_pos provides failure tolerance to slave.

      I'd like to see MariaDB support table-based master info repository (see https://dev.mysql.com/doc/refman/5.6/en/replication-options-slave.html#option_mysqld_master-info-repository). If an InnoDB table were used, it could be encrypted. This would be preferable to having to put the password in plaintext in a text file.

      Attachments

        Issue Links

          Activity

            kolbe Kolbe Kegel (Inactive) created issue -

            Upon upgrade from MySQL to MariaDB master-info-repository and relay-log-info-repository are completely ignored without even warning in .err log. This causes troubles when migrating slave servers. There should be at least warning if not error in .err log.

            Ideally mysql_upgrade script should take care of that and extract the data from mysql.slave_master_info and mysql.slave_relay_log_info to store them in master.info file.

            salle Alexander Keremidarski added a comment - Upon upgrade from MySQL to MariaDB master-info-repository and relay-log-info-repository are completely ignored without even warning in .err log. This causes troubles when migrating slave servers. There should be at least warning if not error in .err log. Ideally mysql_upgrade script should take care of that and extract the data from mysql.slave_master_info and mysql.slave_relay_log_info to store them in master.info file.
            GeoffMontee Geoff Montee (Inactive) made changes -
            Field Original Value New Value
            Assignee Andrei Elkin [ elkin ]
            Elkin Andrei Elkin made changes -
            Fix Version/s 10.5 [ 23123 ]
            Elkin Andrei Elkin added a comment -

            julien.fritsch: to why would it be possible to do.. - I merely offered an option if this feature request can be rated as a bug. After all no new option seem need to be provided for the user.

            But now when I dwelt into the matter better, the ultimate goal's changes in the upgrade script do not look significant at all.
            salle, how about executing a couple of sql queries on the MySQL slave side prior its ultimate stopping:

            set @@global.master_info_repository='file';
            set @@global.relay_log_info_repository='file';
            

            I am not sure where to place those lines but the mysql_upgrade docs leaves hope we can
            place them there and run the program twice - before and after the new binary are installed:

            mysql_upgrade is run after starting the new MariaDB server. Running it before you shut down the old version will not hurt anything and will allow you to make sure it works and figure out authentication for it ahead of time.
            

            Elkin Andrei Elkin added a comment - julien.fritsch : to why would it be possible to do.. - I merely offered an option if this feature request can be rated as a bug. After all no new option seem need to be provided for the user. But now when I dwelt into the matter better, the ultimate goal's changes in the upgrade script do not look significant at all. salle , how about executing a couple of sql queries on the MySQL slave side prior its ultimate stopping: set @ @global .master_info_repository= 'file' ; set @ @global .relay_log_info_repository= 'file' ; I am not sure where to place those lines but the mysql_upgrade docs leaves hope we can place them there and run the program twice - before and after the new binary are installed: mysql_upgrade is run after starting the new MariaDB server. Running it before you shut down the old version will not hurt anything and will allow you to make sure it works and figure out authentication for it ahead of time.
            Elkin Andrei Elkin made changes -
            Issue Type Task [ 3 ] Epic [ 5 ]
            Priority Major [ 3 ] Critical [ 2 ]
            Elkin Andrei Elkin made changes -
            Summary Add support for master-info-repository=TABLE Add warning when postupgrade leftover '*-info-repository=TABLE' exist
            Elkin Andrei Elkin made changes -
            serg Sergei Golubchik made changes -
            Issue Type Epic [ 5 ] Task [ 3 ]
            serg Sergei Golubchik made changes -
            Summary Add warning when postupgrade leftover '*-info-repository=TABLE' exist table-based master info repository
            serg Sergei Golubchik made changes -
            Fix Version/s 10.5 [ 23123 ]
            sujatha.sivakumar Sujatha Sivakumar (Inactive) made changes -
            Assignee Andrei Elkin [ elkin ] Sujatha Sivakumar [ sujatha.sivakumar ]
            sujatha.sivakumar Sujatha Sivakumar (Inactive) made changes -
            Fix Version/s 10.5 [ 23123 ]
            sujatha.sivakumar Sujatha Sivakumar (Inactive) made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            sujatha.sivakumar Sujatha Sivakumar (Inactive) added a comment - Code changes: https://github.com/MariaDB/server/commit/9ae015878f11be3e3033fd1b35357ea5927c6c51 Build Bot testing: http://buildbot.askmonty.org/buildbot/grid?category=main&branch=bb-10.5-sujatha Changes were reviewed and approved by Andrei.
            sujatha.sivakumar Sujatha Sivakumar (Inactive) made changes -
            Component/s Replication [ 10100 ]
            Fix Version/s 10.5.2 [ 24030 ]
            Fix Version/s 10.5 [ 23123 ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            Elkin Andrei Elkin made changes -
            Description I'd like to see MariaDB support table-based master info repository (see https://dev.mysql.com/doc/refman/5.6/en/replication-options-slave.html#option_mysqld_master-info-repository).

            If an InnoDB table were used, it could be encrypted. This would be preferable to having to put the password in plaintext in a text file.
            Upon upgrade from MySQL to MariaDB master-info-repository and relay-log-info-repository are completely ignored without even warning in .err log. This causes troubles when migrating slave servers. There should be at least warning if not error in .err log.

            Ideally mysql_upgrade script should take care of that and extract the data from mysql.slave_master_info and mysql.slave_relay_log_info to store them in master.info file.

            +The ticket description is edited to stress on the missed warnings at or after upgrade to mariadb,
            the former description text is below. In fact its aim to have _table-based master info_ is addressed
            through {{mysql.gtid_slave_pos}} which in combination with {{CHANGE MASTER TO ... master_use_gtid = slave_pos }} provides failure tolerance to slave.
            +
            ??[I'd like to see MariaDB support table-based master info repository (see https://dev.mysql.com/doc/refman/5.6/en/replication-options-slave.html#option_mysqld_master-info-repository).

            If an InnoDB table were used, it could be encrypted. This would be preferable to having to put the password in plaintext in a text file.]??
            Elkin Andrei Elkin made changes -
            Description Upon upgrade from MySQL to MariaDB master-info-repository and relay-log-info-repository are completely ignored without even warning in .err log. This causes troubles when migrating slave servers. There should be at least warning if not error in .err log.

            Ideally mysql_upgrade script should take care of that and extract the data from mysql.slave_master_info and mysql.slave_relay_log_info to store them in master.info file.

            +The ticket description is edited to stress on the missed warnings at or after upgrade to mariadb,
            the former description text is below. In fact its aim to have _table-based master info_ is addressed
            through {{mysql.gtid_slave_pos}} which in combination with {{CHANGE MASTER TO ... master_use_gtid = slave_pos }} provides failure tolerance to slave.
            +
            ??[I'd like to see MariaDB support table-based master info repository (see https://dev.mysql.com/doc/refman/5.6/en/replication-options-slave.html#option_mysqld_master-info-repository).

            If an InnoDB table were used, it could be encrypted. This would be preferable to having to put the password in plaintext in a text file.]??
            Upon upgrade from MySQL to MariaDB master-info-repository and relay-log-info-repository are completely ignored without even warning in .err log. This causes troubles when migrating slave servers. There should be at least warning if not error in .err log.

            Ideally mysql_upgrade script should take care of that and extract the data from mysql.slave_master_info and mysql.slave_relay_log_info to store them in master.info file.

            +The ticket description is edited to stress on the missed warnings at or after upgrade to mariadb, the former description text is below. In fact its aim to have _table-based master info_ is addressed through {{mysql.gtid_slave_pos}} which in combination with {{CHANGE MASTER TO ... master_use_gtid = slave_pos }} provides failure tolerance to slave.+

            ??[I'd like to see MariaDB support table-based master info repository (see https://dev.mysql.com/doc/refman/5.6/en/replication-options-slave.html#option_mysqld_master-info-repository). If an InnoDB table were used, it could be encrypted. This would be preferable to having to put the password in plaintext in a text file.]??
            Elkin Andrei Elkin made changes -
            Fix Version/s 10.2.32 [ 24221 ]
            Fix Version/s 10.3.23 [ 24222 ]
            Fix Version/s 10.4.13 [ 24223 ]
            Due Date 2020-04-24
            Labels need_fixes_in_all_GAs
            Priority Critical [ 2 ] Major [ 3 ]
            Elkin Andrei Elkin made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Stalled [ 10000 ]
            sujatha.sivakumar Sujatha Sivakumar (Inactive) made changes -
            Fix Version/s 10.2.33 [ 24224 ]
            Fix Version/s 10.3.24 [ 24225 ]
            Fix Version/s 10.4.14 [ 24226 ]
            Fix Version/s 10.2.32 [ 24221 ]
            Fix Version/s 10.3.23 [ 24222 ]
            Fix Version/s 10.4.13 [ 24223 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 10.4.13 [ 24223 ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 10.4.14 [ 24226 ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 10.3.23 [ 24222 ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 10.3.24 [ 24225 ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 10.2.32 [ 24221 ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 10.2.33 [ 24224 ]
            serg Sergei Golubchik made changes -
            Labels need_fixes_in_all_GAs
            serg Sergei Golubchik made changes -
            Description Upon upgrade from MySQL to MariaDB master-info-repository and relay-log-info-repository are completely ignored without even warning in .err log. This causes troubles when migrating slave servers. There should be at least warning if not error in .err log.

            Ideally mysql_upgrade script should take care of that and extract the data from mysql.slave_master_info and mysql.slave_relay_log_info to store them in master.info file.

            +The ticket description is edited to stress on the missed warnings at or after upgrade to mariadb, the former description text is below. In fact its aim to have _table-based master info_ is addressed through {{mysql.gtid_slave_pos}} which in combination with {{CHANGE MASTER TO ... master_use_gtid = slave_pos }} provides failure tolerance to slave.+

            ??[I'd like to see MariaDB support table-based master info repository (see https://dev.mysql.com/doc/refman/5.6/en/replication-options-slave.html#option_mysqld_master-info-repository). If an InnoDB table were used, it could be encrypted. This would be preferable to having to put the password in plaintext in a text file.]??
            Upon upgrade from MySQL to MariaDB master-info-repository and relay-log-info-repository are completely ignored without even warning in .err log. This causes troubles when migrating slave servers. There should be at least warning if not error in .err log.

            Ideally mysql_upgrade script should take care of that and extract the data from mysql.slave_master_info and mysql.slave_relay_log_info to store them in master.info file.

            +The ticket description is edited to stress on the missed warnings at or after upgrade to mariadb, the former description text is below. In fact its aim to have _table-based master info_ is addressed through {{mysql.gtid_slave_pos}} which in combination with {{CHANGE MASTER TO ... master_use_gtid = slave_pos}} provides failure tolerance to slave.+

            ??[I'd like to see MariaDB support table-based master info repository (see https://dev.mysql.com/doc/refman/5.6/en/replication-options-slave.html#option_mysqld_master-info-repository). If an InnoDB table were used, it could be encrypted. This would be preferable to having to put the password in plaintext in a text file.]??
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 75625 ] MariaDB v4 [ 132865 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Summary table-based master info repository WAS: table-based master info repository
            ralf.gebhardt Ralf Gebhardt made changes -
            Summary WAS: table-based master info repository Upgrade from MySQL to extract data into master.info file WAS: table-based master info repository
            mariadb-jira-automation Jira Automation (IT) made changes -
            Zendesk Related Tickets 201926 201737 127260
            Zendesk active tickets 201926 201737
            mariadb-jira-automation Jira Automation (IT) made changes -
            Zendesk active tickets 201737 201926 201926
            mariadb-jira-automation Jira Automation (IT) made changes -
            Zendesk active tickets 201926 201926 201737

            People

              sujatha.sivakumar Sujatha Sivakumar (Inactive)
              kolbe Kolbe Kegel (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              16 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.