Skip to content

Commit 7f87e65

Browse files
committed
It should wait for spark pods being deleted in SUSPENDED reconciliation loop.
Signed-off-by: Shingo Omura <[email protected]>
1 parent 4c5b807 commit 7f87e65

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/controller/sparkapplication/controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,10 @@ func (r *Reconciler) reconcileSuspendedSparkApplication(ctx context.Context, req
723723
State: v1beta2.ApplicationStateResuming,
724724
}
725725
}
726+
} else {
727+
err := fmt.Errorf("resources associated with SparkApplication still exist: %s/%s", app.Namespace, app.Name)
728+
logger.Error(err, "Failed to confirm being deleted resources associated with SparkApplication", "name", app.Name, "namespace", app.Namespace, "state", app.Status.AppState.State)
729+
return err
726730
}
727731
if err := r.updateSparkApplicationStatus(ctx, app); err != nil {
728732
return err

0 commit comments

Comments
 (0)