Bug #13935 Total size of relay logs: wrong report given
Submitted: 11 Oct 2005 18:16 Modified: 7 Oct 2008 9:00
Reporter: Joerg Bruehe Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Replication Severity:S2 (Serious)
Version:4.1.15 OS:Any (various Unix)
Assigned to: CPU Architecture:Any

[11 Oct 2005 18:16] Joerg Bruehe
Description:
Release build of 4.1.15, based on ChangeSet
  1.2484 05/10/10 00:21:10 kent@mysql.com +1 -0
  Makefile.am:
    Copy "disabled.def"

Similar effect to bug#6987 re-occurred on some machines in some product builds.

List of failures/occurrences (some differences shortened to meet the bug-DB limit):

-------------------------------------------------------
*** r/rpl_max_relay_size.result
--- r/rpl_max_relay_size.reject
***************
*** 36,42
  start slave;
  show slave status;
  Slave_IO_State        Master_Host     Master_User     Master_Port     Connect_Retry   Master_Log_File Read_Master_Log_Pos     Relay_Log_File  Relay_Log_Pos   Relay_Master_Log_File   Slave_IO_Running        Slave_SQL_Running       Replicate_Do_DB Replicate_Ignore_DB     Replicate_Do_Table      Replicate_Ignore_Table  Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table     Last_Errno      Last_Error      Skip_Counter    Exec_Master_Log_Pos     Relay_Log_Space Until_Condition Until_Log_File  Until_Log_Pos   Master_SSL_Allowed      Master_SSL_CA_File      Master_SSL_CA_Path      Master_SSL_Cert Master_SSL_Cipher       Master_SSL_Key  Seconds_Behind_Master
! #     127.0.0.1       root    MASTER_PORT     1       master-bin.000001       50477   slave-relay-bin.000008  1283    master-bin.000001       Yes     Yes                                                     0               0       50477   1283    None            0       No                                              #
  stop slave;
  reset slave;
  flush logs;
--- 36,42
  start slave;
  show slave status;
  Slave_IO_State        Master_Host     Master_User     Master_Port     Connect_Retry   Master_Log_File Read_Master_Log_Pos     Relay_Log_File  Relay_Log_Pos   Relay_Master_Log_File   Slave_IO_Running        Slave_SQL_Running       Replicate_Do_DB Replicate_Ignore_DB     Replicate_Do_Table      Replicate_Ignore_Table  Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table     Last_Errno      Last_Error      Skip_Counter    Exec_Master_Log_Pos     Relay_Log_Space Until_Condition Until_Log_File  Until_Log_Pos   Master_SSL_Allowed      Master_SSL_CA_File      Master_SSL_CA_Path      Master_SSL_Cert Master_SSL_Cipher       Master_SSL_Key  Seconds_Behind_Master
! #     127.0.0.1       root    MASTER_PORT     1       master-bin.000001       50477   slave-relay-bin.000008  1283    master-bin.000001       Yes     Yes                                                     0               0       50477   1220    None            0       No                                              #
  stop slave;
  reset slave;
  flush logs;
-------------------------------------------------------
sol10-amd64-a-4.1-standard.log   normal

-------------------------------------------------------
*** r/rpl_max_relay_size.result
--- r/rpl_max_relay_size.reject
***************
*** 29
! #     127.0.0.1       root    MASTER_PORT     1       master-bin.000001       50477   slave-relay-bin.000004  9457    master-bin.000001       Yes     Yes                                                     0               0       50477   9457    None            0       No                                              #
--- 29
! #     127.0.0.1       root    MASTER_PORT     1       master-bin.000001       50477   slave-relay-bin.000004  9457    master-bin.000001       Yes     Yes                                                     0               0       50477   9394    None            0       No                                              #
-------------------------------------------------------
intelxeon3-4.1-standard.log   ps-protocol

-------------------------------------------------------
*** r/rpl_max_relay_size.result
--- r/rpl_max_relay_size.reject
***************
*** 19
! #     127.0.0.1       root    MASTER_PORT     1       master-bin.000001       50477   slave-relay-bin.000014  1221    master-bin.000001       Yes     Yes                                                     0               0       50477   1221    None            0       No                                              #
--- 19
! #     127.0.0.1       root    MASTER_PORT     1       master-bin.000001       50477   slave-relay-bin.000014  1221    master-bin.000001       Yes     Yes                                                     0               0       50477   5371    None            0       No                                              #
-------------------------------------------------------
xserve-64bit-4.1-cluster.log   normal

-------------------------------------------------------
*** r/rpl_max_relay_size.result
--- r/rpl_max_relay_size.reject
***************
*** 16,22
  start slave;
  show slave status;
  Slave_IO_State        Master_Host     Master_User     Master_Port     Connect_Retry   Master_Log_File Read_Master_Log_Pos     Relay_Log_File  Relay_Log_Pos   Relay_Master_Log_File   Slave_IO_Running        Slave_SQL_Running       Replicate_Do_DB Replicate_Ignore_DB     Replicate_Do_Table      Replicate_Ignore_Table  Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table     Last_Errno      Last_Error      Skip_Counter    Exec_Master_Log_Pos     Relay_Log_Space Until_Condition Until_Log_File  Until_Log_Pos   Master_SSL_Allowed      Master_SSL_CA_File      Master_SSL_CA_Path      Master_SSL_Cert Master_SSL_Cipher       Master_SSL_Key  Seconds_Behind_Master
! #     127.0.0.1       root    MASTER_PORT     1       master-bin.000001       50477   slave-relay-bin.000014  1221    master-bin.000001       Yes     Yes                                                     0               0       50477   1221    None            0       No                                              #
  stop slave;
  reset slave;
  set global max_relay_log_size=(5*4096);
--- 16,22
  start slave;
  show slave status;
  Slave_IO_State        Master_Host     Master_User     Master_Port     Connect_Retry   Master_Log_File Read_Master_Log_Pos     Relay_Log_File  Relay_Log_Pos   Relay_Master_Log_File   Slave_IO_Running        Slave_SQL_Running       Replicate_Do_DB Replicate_Ignore_DB     Replicate_Do_Table      Replicate_Ignore_Table  Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table     Last_Errno      Last_Error      Skip_Counter    Exec_Master_Log_Pos     Relay_Log_Space Until_Condition Until_Log_File  Until_Log_Pos   Master_SSL_Allowed      Master_SSL_CA_File      Master_SSL_CA_Path      Master_SSL_Cert Master_SSL_Cipher       Master_SSL_Key  Seconds_Behind_Master
! #     127.0.0.1       root    MASTER_PORT     1       master-bin.000001       50477   slave-relay-bin.000014  1221    master-bin.000001       Yes     Yes                                                     0               0       50477   5320    None            0       No                                              #
  stop slave;
  reset slave;
  set global max_relay_log_size=(5*4096);
-------------------------------------------------------
xserve-64bit-4.1-pro-gpl.log   normal

-------------------------------------------------------
*** r/rpl_max_relay_size.result
--- r/rpl_max_relay_size.reject
***************
*** 19
! #     127.0.0.1       root    MASTER_PORT     1       master-bin.000001       50477   slave-relay-bin.000014  1221    master-bin.000001       Yes     Yes                                                     0               0       50477   1221    None            0       No                                              #
--- 19
! #     127.0.0.1       root    MASTER_PORT     1       master-bin.000001       50477   slave-relay-bin.000014  1221    master-bin.000001       Yes     Yes                                                     0               0       50477   1158    None            0       No                                              #
-------------------------------------------------------
barney-4.1-classic.log   ps-protocol

How to repeat:
Test suite failure, but with low likelihood.
[20 Jul 2006 18:19] Joerg Bruehe
Still occurring in the 4.1.21 release build,
in "pro-gpl" on Solaris 10 (x86).
[20 Jul 2006 18:30] Joerg Bruehe
In 4.1.21, I found an even weirder value - 
could there be an un-initialized variable or a race condition involved ?

-------------------------------------------------------
*** r/rpl_max_relay_size.result
--- r/rpl_max_relay_size.reject
***************
*** 49,60
  create table t1 (a int);
  show slave status;
  Slave_IO_State        Master_Host     Master_User     Master_Port     Connect_Retry   Master_Log_File Read_Master_Log_Pos
        Relay_Log_File  Relay_Log_Pos   Relay_Master_Log_File   Slave_IO_Running        Slave_SQL_Running       Replicate_Do_DB    Replicate_Ignore_DB     Replicate_Do_Table      Replicate_Ignore_Table  Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table        Last_Errno      Last_Error      Skip_Counter    Exec_Master_Log_Pos     Relay_Log_Space Until_Condition Until_Log_File     Until_Log_Pos   Master_SSL_Allowed      Master_SSL_CA_File      Master_SSL_CA_Path      Master_SSL_Cert Mas
ter_SSL_Cipher  Master_SSL_Key  Seconds_Behind_Master
! #     127.0.0.1       root    MASTER_PORT     1       master-bin.000001       50535   slave-relay-bin.000009  62      master-bin.000001  Yes     Yes                                                     0               0       50535   62      None               0       No                                              #
  flush logs;
  drop table t1;
  show slave status;
  Slave_IO_State        Master_Host     Master_User     Master_Port     Connect_Retry   Master_Log_File Read_Master_Log_Pos
        Relay_Log_File  Relay_Log_Pos   Relay_Master_Log_File   Slave_IO_Running        Slave_SQL_Running       Replicate_Do_DB    Replicate_Ignore_DB     Replicate_Do_Table      Replicate_Ignore_Table  Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table        Last_Errno      Last_Error      Skip_Counter    Exec_Master_Log_Pos     Relay_Log_Space Until_Condition Until_Log_File     Until_Log_Pos   Master_SSL_Allowed      Master_SSL_CA_File      Master_SSL_CA_Path      Master_SSL_Cert Master_SSL_Cipher  Master_SSL_Key  Seconds_Behind_Master
! #     127.0.0.1       root    MASTER_PORT     1       master-bin.000001       50583   slave-relay-bin.000010  52      master-bin.000001  Yes     Yes                                                     0               0       50583   52      None               0       No                                              #
  flush logs;
  show master status;
  File  Position        Binlog_Do_DB    Binlog_Ignore_DB
--- 49,60
  create table t1 (a int);
  show slave status;
  Slave_IO_State        Master_Host     Master_User     Master_Port     Connect_Retry   Master_Log_File Read_Master_Log_Pos
        Relay_Log_File  Relay_Log_Pos   Relay_Master_Log_File   Slave_IO_Running        Slave_SQL_Running       Replicate_Do_DB    Replicate_Ignore_DB     Replicate_Do_Table      Replicate_Ignore_Table  Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table        Last_Errno      Last_Error      Skip_Counter    Exec_Master_Log_Pos     Relay_Log_Space Until_Condition Until_Log_File     Until_Log_Pos   Master_SSL_Allowed      Master_SSL_CA_File      Master_SSL_CA_Path      Master_SSL_Cert Master_SSL_Cipher  Master_SSL_Key  Seconds_Behind_Master
! #     127.0.0.1       root    MASTER_PORT     1       master-bin.000001       50535   slave-relay-bin.000009  62      master-bin.000001  Yes     Yes                                                     0               0       50535   18446744073709551615       None            0       No                                              #
  flush logs;
  drop table t1;
  show slave status;
  Slave_IO_State        Master_Host     Master_User     Master_Port     Connect_Retry   Master_Log_File Read_Master_Log_Pos
        Relay_Log_File  Relay_Log_Pos   Relay_Master_Log_File   Slave_IO_Running        Slave_SQL_Running       Replicate_Do_DB    Replicate_Ignore_DB     Replicate_Do_Table      Replicate_Ignore_Table  Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table        Last_Errno      Last_Error      Skip_Counter    Exec_Master_Log_Pos     Relay_Log_Space Until_Condition Until_Log_File     Until_Log_Pos   Master_SSL_Allowed      Master_SSL_CA_File      Master_SSL_CA_Path      Master_SSL_Cert Master_SSL_Cipher  Master_SSL_Key  Seconds_Behind_Master
! #     127.0.0.1       root    MASTER_PORT     1       master-bin.000001       50583   slave-relay-bin.000010  52      master-bin.000001  Yes     Yes                                                     0               0       50583   18446744073709551605       None            0       No                                              #
  flush logs;
  show master status;
  File  Position        Binlog_Do_DB    Binlog_Ignore_DB
-------------------------------------------------------
osx-imac-x86-4.1-standard.log   normal
[23 Oct 2007 12:07] Mats Kindahl
I would like to have it verified that this is really a problem with a 5.0 or 5.1 server, since 4.1 is under conditional support.
[7 Oct 2008 9:00] Susanne Ebrecht
This is not repeatable in newer version of MySQL (5.0, 5.1).