From b0250bdc69e994920f216aebdb52b66f3f375e73 Mon Sep 17 00:00:00 2001 From: Tanjin Xu Date: Mon, 16 Oct 2023 12:15:47 -0700 Subject: [PATCH] add debugging --- go/vt/vttablet/tabletmanager/replmanager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/vt/vttablet/tabletmanager/replmanager.go b/go/vt/vttablet/tabletmanager/replmanager.go index 64da7550306..307b9ce7b1f 100644 --- a/go/vt/vttablet/tabletmanager/replmanager.go +++ b/go/vt/vttablet/tabletmanager/replmanager.go @@ -105,10 +105,10 @@ func (rm *replManager) check() { func (rm *replManager) checkActionLocked() { status, err := rm.tm.MysqlDaemon.ReplicationStatus() if err != nil { - if mysql.NewSQLErrorFromError(err) != mysql.ErrNotReplica { + if err != mysql.ErrNotReplica { return } - log.Infof("slack error: check replication status failed with %v", err) + log.Infof("slack error: check replication status failed with err: %v, sql err: %v", err, mysql.ErrNotReplica) } else { // If only one of the threads is stopped, it's probably // intentional. So, we don't repair replication.