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

mysqlbinlog exits silently without error when another instance connects to server

Details

    • 10.2.4-4, 10.2.4-5, 10.2.5-1

    Description

      When mysqlbinlog reads binlogs from a remote server (with stop-never), it connects to the server with a certain ID, either default or explicitly set. If another instance of mysqlbinlog connects with the same ID, the previous one exits. In MySQL, it returns a non-zero exit code and a clear enough error message:

      ERROR: Got error reading packet from server: A slave with the same server_uuid/server_id as this slave has connected to the master; the first event 'mysql-bin.000001' at 4, the last event read from './mysql-bin.000051' at 4700, the last byte read from './mysql-bin.000051' at 4700.
      

      In MariaDB, it exits silently with success code and without error messages. It's dangerous, because it will make user believe all logs have been stored.

      Attachments

        Issue Links

          Activity

            http://lists.askmonty.org/pipermail/commits/2017-March/010843.html

            MySQL adds the 'duplicate_slave_id' flag to the THD and keeps the same KILL_QUERY status. I think adding the new KILL_SLAVE_SAME_ID status is more natural and lightweight.

            holyfoot Alexey Botchkov added a comment - http://lists.askmonty.org/pipermail/commits/2017-March/010843.html MySQL adds the 'duplicate_slave_id' flag to the THD and keeps the same KILL_QUERY status. I think adding the new KILL_SLAVE_SAME_ID status is more natural and lightweight.

            People

              holyfoot Alexey Botchkov
              elenst Elena Stepanova
              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.