From 55c3f4302e8048dd5ba2eda7b26449a27412b344 Mon Sep 17 00:00:00 2001 From: Tanjin Xu Date: Mon, 22 Apr 2024 12:50:58 -0700 Subject: [PATCH] skip unavailable logging for restore tablet --- go/vt/discovery/tablet_health_check.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/go/vt/discovery/tablet_health_check.go b/go/vt/discovery/tablet_health_check.go index 62a4407fd9e..3fe40a5e800 100644 --- a/go/vt/discovery/tablet_health_check.go +++ b/go/vt/discovery/tablet_health_check.go @@ -350,7 +350,10 @@ func (thc *tabletHealthCheck) checkConn(hc *HealthCheckImpl) { } func (thc *tabletHealthCheck) closeConnection(ctx context.Context, err error) { - log.Warningf("tablet %v healthcheck stream error: %v", thc.Tablet, err) + if thc.Tablet.Type != topodata.TabletType_RESTORE { + log.Warningf("tablet %v healthcheck stream error: %v", thc.Tablet, err) + } + thc.setServingState(false, err.Error()) thc.LastError = err _ = thc.Conn.Close(ctx)