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

Semi_sync: Last_IO_Error: Fatal error: Failed to run 'after_queue_event' hook

Details

    Description

      In Semi-Sync replication environment, when master server got timeout waiting for the reply of binlog

      2019-07-29 15:19:30 975211 [Warning] Timeout waiting for reply of binlog (file: bin_log.000346, pos: 247856273), semi-sync up to file bin_log.000346, position 247854688.
      2019-07-29 15:19:30 975211 [Note] Semi-sync replication switched OFF.
      2019-07-29 15:20:32 974875 [Note] Stop semi-sync binlog_dump to slave (server_id: 2)
      2019-07-29 15:20:33 974874 [Note] Stop semi-sync binlog_dump to slave (server_id: 3)
      

      Slave server getting stopped with below error.

      2019-07-29 15:20:46 11 [ERROR] Semi-sync slave net_flush() reply failed
      2019-07-29 15:20:46 11 [ERROR] Slave I/O: Fatal error: Failed to run 'after_queue_event' hook, Internal MariaDB error code: 1593
      2019-07-29 15:20:46 11 [Note] Slave I/O thread exiting, read up to log 'bin_log.000346', position 247948930; GTID position 1-1-146008965
      

      This looks like upstream bug https://bugs.mysql.com/bug.php?id=45852

      upstream bug is resolved by MySQL with below note.

      semisynch: Last_IO_Error: Fatal error: Failed to run 'after_queue_event' hook
            
            Errors when send reply to master should never cause the IO thread
            to stop, because master can fall back to async replication if it
            does not get reply from slave.
            
            The problem is fixed by deliberately ignoring the return value of
            slaveReply.
           @ plugin/semisync/semisync_slave_plugin.cc
              Deliberately ignore the return value of slaveReply so that errors
              while sending slave reply will not cause the IO thread to stop.
      

      Attachments

        Issue Links

          Activity

            niljoshi Nilnandan Joshi created issue -
            elenst Elena Stepanova made changes -
            Field Original Value New Value
            Fix Version/s 10.3 [ 22126 ]
            Assignee Sujatha Sivakumar [ sujatha.sivakumar ]
            sujatha.sivakumar Sujatha Sivakumar (Inactive) made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            sujatha.sivakumar Sujatha Sivakumar (Inactive) made changes -
            Assignee Sujatha Sivakumar [ sujatha.sivakumar ] Sachin Setiya [ sachin.setiya.007 ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            sachin.setiya.007 Sachin Setiya (Inactive) made changes -
            Assignee Sachin Setiya [ sachin.setiya.007 ] Sujatha Sivakumar [ sujatha.sivakumar ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            sujatha.sivakumar Sujatha Sivakumar (Inactive) made changes -
            issue.field.resolutiondate 2019-09-17 08:02:15.0 2019-09-17 08:02:15.865
            sujatha.sivakumar Sujatha Sivakumar (Inactive) made changes -
            Fix Version/s 10.3.19 [ 23908 ]
            Fix Version/s 10.4.9 [ 23906 ]
            Fix Version/s 10.3 [ 22126 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 98603 ] MariaDB v4 [ 156552 ]
            angelique.sklavounos Angelique Sklavounos (Inactive) made changes -
            mariadb-jira-automation Jira Automation (IT) made changes -
            Zendesk Related Tickets 111789

            People

              sujatha.sivakumar Sujatha Sivakumar (Inactive)
              niljoshi Nilnandan Joshi
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.