Skip to content

Commit

Permalink
handle readtablet error
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
  • Loading branch information
frouioui committed Feb 28, 2023
1 parent 425362d commit 4e00f98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion go/vt/vtorc/logic/topology_recovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,10 @@ 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, _ := inst.ReadTablet(analysisEntry.AnalyzedInstanceKey)
tablet, err := inst.ReadTablet(analysisEntry.AnalyzedInstanceKey)
if err != nil {
return false, nil, err
}

var candidateTabletAlias *topodatapb.TabletAlias
if candidateInstanceKey != nil {
Expand Down

0 comments on commit 4e00f98

Please sign in to comment.