Skip to content

Commit

Permalink
Issue 643: Fixing intermittent upgrade failure (#672)
Browse files Browse the repository at this point in the history
* Issue 643: Fixing intermittent upgrade failure

Signed-off-by: anisha.kj <[email protected]>

* Adding logs

Signed-off-by: anisha.kj <[email protected]>

* Fixed the typo

Signed-off-by: anisha.kj <[email protected]>

---------

Signed-off-by: anisha.kj <[email protected]>
  • Loading branch information
anishakj authored Oct 11, 2023
1 parent 2d60c29 commit d970e05
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions controllers/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,14 @@ 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)) {
log.Infof("All segmentstore pods are updated")
return false, nil
}
return false, fmt.Errorf("could not obtain outdated pod")
}

Expand Down

0 comments on commit d970e05

Please sign in to comment.