From 6fe32599ca0b3374e14755e84ed5ac366fa6d87b Mon Sep 17 00:00:00 2001 From: Florent Poinsard <35779988+frouioui@users.noreply.github.com> Date: Wed, 1 Mar 2023 10:10:59 +0200 Subject: [PATCH] handle readtablet error (#12511) Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> --- go/vt/vtorc/logic/topology_recovery.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go/vt/vtorc/logic/topology_recovery.go b/go/vt/vtorc/logic/topology_recovery.go index af12587177c..001d702cfde 100644 --- a/go/vt/vtorc/logic/topology_recovery.go +++ b/go/vt/vtorc/logic/topology_recovery.go @@ -258,6 +258,9 @@ func recoverDeadPrimary(ctx context.Context, analysisEntry inst.ReplicationAnaly // Read the tablet information from the database to find the shard and keyspace of the tablet tablet, err := inst.ReadTablet(analysisEntry.AnalyzedInstanceKey) + if err != nil { + return false, nil, err + } var candidateTabletAlias *topodatapb.TabletAlias if candidateInstanceKey != nil {