Skip to content

Commit

Permalink
It should wait for spark pods being deleted in SUSPENDED reconciliati…
Browse files Browse the repository at this point in the history
…on loop.

Signed-off-by: Shingo Omura <[email protected]>
  • Loading branch information
everpeace committed Jan 20, 2025
1 parent 4c5b807 commit 7f87e65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/controller/sparkapplication/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,10 @@ func (r *Reconciler) reconcileSuspendedSparkApplication(ctx context.Context, req
State: v1beta2.ApplicationStateResuming,
}
}
} else {
err := fmt.Errorf("resources associated with SparkApplication still exist: %s/%s", app.Namespace, app.Name)
logger.Error(err, "Failed to confirm being deleted resources associated with SparkApplication", "name", app.Name, "namespace", app.Namespace, "state", app.Status.AppState.State)
return err
}
if err := r.updateSparkApplicationStatus(ctx, app); err != nil {
return err
Expand Down

0 comments on commit 7f87e65

Please sign in to comment.