Skip to content

mysql show replica status error converting NULL to uint32 is unsupported #539

@trpalmer

Description

@trpalmer

Previously referenced in #307 this is a problem even with later versions of MySql server that the MySql client does not have a problem with

usql --version
usql 0.19.26
show replica status;
error: mysql: sql: Scan error on column index 43, name "SQL_Remaining_Delay": converting NULL to uint32 is unsupported

select @@version;
+-----------+
| @@version |
+-----------+
| 8.0.42    |
+-----------+
(1 row)

Same db, mysql client:

mysql> show replica status\G;
*************************** 1. row ***************************
             Replica_IO_State: Queueing source event to the relay log
                  Source_Host: xx
                  Source_User: rdsrepladmin
                  Source_Port: 3306
                Connect_Retry: 60
              Source_Log_File: mysql-bin-changelog.2070680
          Read_Source_Log_Pos: 88884063
               Relay_Log_File: relaylog.337483
                Relay_Log_Pos: 279
        Relay_Source_Log_File: mysql-bin-changelog.2070673
           Replica_IO_Running: Yes
          Replica_SQL_Running: Yes
              Replicate_Do_DB:
          Replicate_Ignore_DB:
           Replicate_Do_Table:
       Replicate_Ignore_Table:
      Replicate_Wild_Do_Table:
  Replicate_Wild_Ignore_Table: mysql.%
                   Last_Errno: 0
                   Last_Error:
                 Skip_Counter: 0
          Exec_Source_Log_Pos: 28800067
              Relay_Log_Space: 999967256
              Until_Condition: None
               Until_Log_File:
                Until_Log_Pos: 0
           Source_SSL_Allowed: Yes
           Source_SSL_CA_File:
           Source_SSL_CA_Path:
              Source_SSL_Cert:
            Source_SSL_Cipher:
               Source_SSL_Key:
        Seconds_Behind_Source: 392688
Source_SSL_Verify_Server_Cert: No
                Last_IO_Errno: 0
                Last_IO_Error:
               Last_SQL_Errno: 0
               Last_SQL_Error:
  Replicate_Ignore_Server_Ids:
             Source_Server_Id: 601416912
                  Source_UUID: 7ca7a424-9253-3e40-a7d8-fdef41c9ccc5
             Source_Info_File: mysql.slave_master_info
                    SQL_Delay: 0
          SQL_Remaining_Delay: NULL
    Replica_SQL_Running_State: Waiting for dependent transaction to commit
           Source_Retry_Count: 86400
                  Source_Bind:
      Last_IO_Error_Timestamp:
     Last_SQL_Error_Timestamp:
               Source_SSL_Crl:
           Source_SSL_Crlpath:
           Retrieved_Gtid_Set:
            Executed_Gtid_Set:
                Auto_Position: 0
         Replicate_Rewrite_DB:
                 Channel_Name:
           Source_TLS_Version:
       Source_public_key_path:
        Get_Source_public_key: 0
            Network_Namespace:
1 row in set (0.05 sec)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions