Skip to content

Commit

Permalink
Improve logging to the healthcheck's waiting for targets
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo J. Ortega U. <5791035+ejortegau@users.noreply.github.com>
  • Loading branch information
ejortegau committed Nov 27, 2024
1 parent 49ac1ad commit ec7eca2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/vt/discovery/healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,8 @@ func (hc *HealthCheckImpl) waitForTablets(ctx context.Context, targets []*query.
var nonNilTargets = []query.Target{}
for _, target := range targets {
if target != nil {
nonNilTargets = append(nonNilTargets, *target)
nonNilTargets = append(nonNilTargets, query.Target{Keyspace: target.Keyspace, Shard: target.Shard,
TabletType: target.TabletType, Cell: target.Cell})
}
}
log.Infof("Still waiting for targets %+v", nonNilTargets)
Expand Down

0 comments on commit ec7eca2

Please sign in to comment.