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

Improve Error Logging in SHOW SLAVE STATUS Output and for "Specified key was too long" case

    Details

    • Type: Task
    • Status: Stalled
    • Priority: Minor
    • Resolution: Unresolved
    • Fix Version/s: 10.1
    • Component/s: None
    • Labels:
      None

      Description

      This is a request to improve the error logging in SHOW SLAVE STATUS output.

      Specifically, the "Last_Error" and "Last_SQL_Error" have a size limit.

      So the first request is to extend the size of this. Depending on the error, the relevant part may be omitted, and thus hard to track down.

      Consider error 1071 (specified key is too long). If there a multiple keys, and the table definition is too long, then you don't even see any of the keys, such as the below:

      Replicate_Wild_Ignore_Table:
      Last_Errno: 1071
      Last_Error: Error 'Specified key was too long; max key length is 3072 bytes' on query. Default database: 'test.dbname'. Query: 'CREATE TABLE `t1` (
      ...<trim long table def.>...
      ...
      Skip_Counter: 0
      Exec_Master_Log_Pos: 562164686
      ...

      Second, perhaps for the case of error 1071, the actual offending key could be listed. That would be much improved, and make trouble-shooting a breeze.

      For instance, something like "key ….. ( a, b, c ) was too long" would be ideal.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            serg Sergei Golubchik added a comment - - edited

            backward incompatible changes to the errmsg.sys files — it's safer to do it in 10.1

            Show
            serg Sergei Golubchik added a comment - - edited backward incompatible changes to the errmsg.sys files — it's safer to do it in 10.1
            Hide
            serg Sergei Golubchik added a comment -

            Similarly many other error messages could be extended to include the key name

            Show
            serg Sergei Golubchik added a comment - Similarly many other error messages could be extended to include the key name

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                ccalender Chris Calender
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 30 minutes
                  1h 30m