Bug #45820 Failures while syncing the relay-log.info are omitted
Submitted: 29 Jun 2009 11:05 Modified: 13 Jul 2009 12:32
Reporter: Alfranio Tavares Correia Junior Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Replication Severity:S3 (Non-critical)
Version:6.0 OS:Any
Assigned to: Alfranio Tavares Correia Junior CPU Architecture:Any
Tags: replication

[29 Jun 2009 11:05] Alfranio Tavares Correia Junior
Description:
Failures while syncing the relay log info are not omitted

How to repeat:
Check the function Relay_log_info_file::do_flush_info() in sql/rpl_rli_file.cc.

Suggested fix:
=== modified file 'sql/rpl_rli_file.cc'
--- sql/rpl_rli_file.cc	2009-06-29 10:44:27 +0000
+++ sql/rpl_rli_file.cc	2009-06-29 10:54:47 +0000
@@ -264,7 +264,7 @@
       ++(sync_counter) >= sync_relayloginfo_period)
   {
     if (my_sync(info_fd, MYF(MY_WME)))
-      error=0;
+      error= 1;
     sync_counter= 0;
   }
   /* Flushing the relay log is done by the slave I/O thread */
[29 Jun 2009 11:08] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/77446

3410 Alfranio Correia	2009-06-29
      BUG#45820 Failures while syncing the relay-log.info are omitted
      
      The call to my_sync in Relay_log_info_file::do_flush_info() was
      not reporting any failure.
[10 Jul 2009 11:20] Bugs System
Pushed into 5.4.4-alpha (revid:anozdrin@bk-internal.mysql.com-20090710111017-bnh2cau84ug1hvei) (version source revid:alfranio.correia@sun.com-20090706055402-h5szi010drn3u3jp) (merge vers: 5.4.4-alpha) (pib:11)
[13 Jul 2009 12:32] Jon Stephens
Documented bugfix in the 5.4.4 changelog as follows:
      Failures while flushing the relay log were not always reported.