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

information_schema.slave_status Bad String Cut-off

    XMLWordPrintable

Details

    Description

      Information_schema.slave_status, added in MDEV-33856, cuts off strings way too short, whereas SHOW SLAVE STATUS does not. See the following example with Last_error:

      Information_schema.slave_status cuts off the error quite badly

      MariaDB [(none)]> select Last_SQL_Error,Last_SQL_Errno from information_schema.slave_status\G
      *************************** 1. row ***************************
      Last_SQL_Error: Error 'Duplicate ent
      Last_SQL_Errno: 1062
      

      Whereas SHOW SLAVE STATUS writes the full error output:

      MariaDB [(none)]> show slave status\G
      *************************** 1. row ***************************
      ...
                      Last_SQL_Errno: 1062
                      Last_SQL_Error: Error 'Duplicate entry '1' for key 'PRIMARY'' on query. Default database: ''. Query: 'insert into test.t1 values (1)'
      

      It seems the field lengths that are set for SHOW SLAVE STATUS are not actually respected in its output, and when using those values for INFORMATION_SCHEMA.SLAVE_STATUS, they are much too short.

      Attachments

        Issue Links

          Activity

            People

              monty Michael Widenius
              bnestere Brandon Nesterenko
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.