Skip to content

Commit

Permalink
skip unavailable logging for restore tablet
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjinx committed Apr 22, 2024
1 parent 215f434 commit 55c3f43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion go/vt/discovery/tablet_health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 55c3f43

Please sign in to comment.