Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion go/vt/vttablet/tabletmanager/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ func (orc *orcClient) InActiveShardRecovery(tablet *topodatapb.Tablet) (bool, er
return false, err
}

// Orchestrator returns a 0-length response when it has no history of recovery on this cluster.
if len(r) == 0 {
return false, fmt.Errorf("Orchestrator returned an empty audit-recovery response")
return false, nil
}

active, ok := r[0]["IsActive"].(bool)
Expand Down