Skip to content

Conversation

@tomwei7
Copy link
Contributor

@tomwei7 tomwei7 commented Apr 22, 2024

Execute some query when mysql host is down or unavailable will set c.conn = nil and it case panic when close canal client.

go-mysql/canal/canal.go

Lines 521 to 526 in f0df38a

if mysql.ErrorEqual(err, mysql.ErrBadConn) {
c.conn.Close()
c.conn = nil
continue
}
return nil, err

@lance6716 lance6716 merged commit 7c31dc4 into go-mysql-org:master Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants