From 0573f2855fa70ec714041deec5e68c64484fe49e Mon Sep 17 00:00:00 2001 From: deepthi Date: Wed, 11 Mar 2020 18:00:09 -0700 Subject: [PATCH] Log warning when vttablet StreamHealth RPC fails Signed-off-by: deepthi --- go/vt/discovery/healthcheck.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/vt/discovery/healthcheck.go b/go/vt/discovery/healthcheck.go index e7abf1dbbde..b282b846d7b 100644 --- a/go/vt/discovery/healthcheck.go +++ b/go/vt/discovery/healthcheck.go @@ -621,6 +621,7 @@ func (hcc *healthCheckConn) stream(ctx context.Context, hc *HealthCheckImpl, cal } if err := hcc.conn.StreamHealth(ctx, callback); err != nil { + log.Warningf("tablet %v healthcheck stream error: %v", hcc.tabletStats.Tablet.Alias, err) hcc.setServingState(false, err.Error()) hcc.tabletStats.LastError = err // Send nil because we intend to close the connection.