Skip to content

Commit

Permalink
Issue 643: Fixing intermittent upgrade failure
Browse files Browse the repository at this point in the history
Signed-off-by: anisha.kj <anisha.kj@dell.com>
  • Loading branch information
anishakj committed Oct 9, 2023
1 parent 2d60c29 commit eeebe48
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions controllers/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,13 @@ func (r *PravegaClusterReconciler) syncSegmentStoreVersion(p *pravegav1beta1.Pra
}

if pod == nil {
pods, err := r.getStsPodsWithVersion(sts, p.Status.TargetVersion)
if err != nil {
return false, err
}
if *sts.Spec.Replicas == (int32)(len(pods)) {
return false, nil
}
return false, fmt.Errorf("could not obtain outdated pod")
}

Expand Down

0 comments on commit eeebe48

Please sign in to comment.