dolthub / vitess

Vitess is a database clustering system for horizontal scaling of MySQL.
http://vitess.io
Apache License 2.0
22 stars 20 forks source link

Bug fix: Send an error response when the server fails to handle `COM_BINLOG_DUMP_GTID` #357

Closed fulghum closed 2 months ago

fulghum commented 2 months ago

A MySQL primary needs to be able to send back an error response when handling the COM_BINLOG_DUMP_GTID command. Previously, when the integrator returned an error, it was logged in the primary server logs, but it was not being sent back to the replica who sent the command. This change causes an error packet to be sent to the replica, containing the details of the error the integrator returned.

This change is difficult to test in isolation, but I have tests in dolt that will exercise this codepath.